Hello All,
I''m having trouble detecting when a client terminates a tcp connection
to my
server.
If I define unbind, I see the following exception raised.
/usr/lib64/ruby/gems/1.8/gems/eventmachine-0.10.0/lib/eventmachine.rb:1071:in
`event_callback'':
EventMachine::ConnectionNotBound (EventMachine::ConnectionNotBound)
from
/usr/lib64/ruby/gems/1.8/gems/eventmachine-0.10.0/lib/eventmachine.rb:226:in
`release_machine''
from
/usr/lib64/ruby/gems/1.8/gems/eventmachine-0.10.0/lib/eventmachine.rb:226:in
`run''
from ./order_daemon.rb:355:in `run''
from ./order_daemon.rb:373
I''ve added begin/rescue to all of my procedures, and I''m
certain there''s not
an error in my code.
If I don''t define unbind, the server connection will continue on
it''s merry
way.
It might be worth mentioning that I''m using an ssl socket.
Also, when you add a periodic timer using the add_periodic_timer method, there
doesn''t seem to be a way to kill the timer. It will keep running even
if you
return the value specified in the add_periodic_timer method (the examples all
show nil, this didn''t work).
Thanks,
Seth