ngauthier / tubesock

Websocket interface on Rack Hijack w/ Rails support
MIT License
620 stars 43 forks source link

closed stream (IOError) #14

Closed raelik closed 10 years ago

raelik commented 10 years ago

This appears to be related to #12. I get this error occasionally after forcing a client connection to close prematurely (i.e. quit the browser during a long running request).

~/.rvm/gems/ruby-2.0.0-p195@toro/gems/tubesock-0.2.2/lib/tubesock.rb:92:in `select': closed stream (IOError)
    from ~/.rvm/gems/ruby-2.0.0-p195@toro/gems/tubesock-0.2.2/lib/tubesock.rb:92:in `each_frame'
    from ~/.rvm/gems/ruby-2.0.0-p195@toro/gems/tubesock-0.2.2/lib/tubesock.rb:63:in `block in listen'

Looks like you need to add IOError to that list of exceptions in tubesock.rb