Permalink
Browse files

rescue all StandardErrors on_readable

  • Loading branch information...
1 parent 985b641 commit a92490d961a156c4af662149a880ca547ba59667 @frsyuki committed Jul 21, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/rev/websocket.rb
View
@@ -61,6 +61,12 @@ def initialize(socket)
@request = {DummyIO::KEY => DummyIO.new}
end
+ def on_readable
+ super
+ rescue
+ close
+ end
+
def on_read(data)
@data << data
dispatch

0 comments on commit a92490d

Please sign in to comment.