info -> debug messages.
parent
0797a1a6e5
commit
7fc1632d17
|
@ -383,11 +383,13 @@ Context.service.loop do |event|
|
||||||
info "IPC::Event::Timer"
|
info "IPC::Event::Timer"
|
||||||
sending_ping_messages
|
sending_ping_messages
|
||||||
when IPC::Event::Connection
|
when IPC::Event::Connection
|
||||||
info "IPC::Event::Connection: #{event.fd}"
|
debug "IPC::Event::Connection: #{event.fd}"
|
||||||
|
|
||||||
when IPC::Event::Disconnection
|
when IPC::Event::Disconnection
|
||||||
info "IPC::Event::Disconnection: #{event.fd}"
|
debug "IPC::Event::Disconnection: #{event.fd}"
|
||||||
|
|
||||||
when IPC::Event::ExtraSocket
|
when IPC::Event::ExtraSocket
|
||||||
info "IPC::Event::ExtraSocket: #{event.fd}"
|
debug "IPC::Event::ExtraSocket: #{event.fd}"
|
||||||
|
|
||||||
# 1. accept new websocket clients
|
# 1. accept new websocket clients
|
||||||
if server.fd == event.fd
|
if server.fd == event.fd
|
||||||
|
@ -404,19 +406,22 @@ Context.service.loop do |event|
|
||||||
|
|
||||||
# 2. active fd != server fd
|
# 2. active fd != server fd
|
||||||
activefd = event.fd
|
activefd = event.fd
|
||||||
|
if activefd <= 0
|
||||||
|
danger "faulty activefd: #{activefd}"
|
||||||
|
end
|
||||||
websocket_switching_procedure activefd
|
websocket_switching_procedure activefd
|
||||||
|
|
||||||
when IPC::Event::Switch
|
when IPC::Event::Switch
|
||||||
puts "IPC::Event::Switch: from fd #{event.fd}"
|
debug "IPC::Event::Switch: from fd #{event.fd}"
|
||||||
raise "Not implemented."
|
raise "Not implemented."
|
||||||
|
|
||||||
# IPC::Event::Message has to be the last entry
|
# IPC::Event::Message has to be the last entry
|
||||||
# because ExtraSocket and Switch inherit from Message class
|
# because ExtraSocket and Switch inherit from Message class
|
||||||
when IPC::Event::MessageSent
|
when IPC::Event::MessageSent
|
||||||
debug "IPC::Event::MessageSent: #{event.fd}"
|
danger "IPC::Event::MessageSent: #{event.fd}"
|
||||||
|
|
||||||
when IPC::Event::MessageReceived
|
when IPC::Event::MessageReceived
|
||||||
info "IPC::Event::MessageReceived: #{event.fd}"
|
debug "IPC::Event::MessageReceived: #{event.fd}"
|
||||||
raise "Not implemented."
|
raise "Not implemented."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Reference in New Issue