• J
    Gracefully handle disconnected clients · 4f8a8e2c
    Jeremy Daer 提交于
    We'll get `Errno::ECONNRESET` if the client forcibly disconnected.
    Just close the socket rather than raising the exception.
    
    Handle other errors in `ClientSocket#write`, too, mirroring the Faye
    error handling which swallows all `StandardError` on write.
    4f8a8e2c
stream.rb 1.3 KB