Permalink
Browse files

We can't raise there.

  • Loading branch information...
botanicus committed Jul 20, 2012
1 parent 4abd994 commit 05de5664e278238441745f5609c588a462db1f5b
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/sockjs/session.rb
View
@@ -342,12 +342,15 @@ def set_alive_checker
@response.write(@transport.empty_string)
end
rescue Exception => error
- raise error
+ puts "==> "
+ p error
+ puts "==> "
self.on_close
@alive_checker.cancel
end
else
- puts "~ [TODO] Not checking if still alive, why? Status: #{@status}, #{self.class},\n#{@transport.class}\n\n#{@response.to_s}\n\n"
+ puts "~ [TODO] Not checking if still alive, why?"
+ puts "Status: #{@status} (response.body.closed: #{@response.body.closed?})\nSession class: #{self.class}\nTransport class: #{@transport.class}\nResponse: #{@response.to_s}\n\n"
end
end
end

0 comments on commit 05de566

Please sign in to comment.