diff options
author | Jeremy Daer <jeremydaer@gmail.com> | 2016-03-20 13:59:02 -0700 |
---|---|---|
committer | Jeremy Daer <jeremydaer@gmail.com> | 2016-03-20 17:36:22 -0700 |
commit | 4f8a8e2c065e4db1f4df0df2fd75338154c6be07 (patch) | |
tree | bfa7e833c7c8a4cc3d7c7af714fe06a274e3ebbe /activerecord/lib/active_record/schema_dumper.rb | |
parent | dda31d59a03adb7e5aa372e72bb66a3886632f2f (diff) | |
download | rails-4f8a8e2c065e4db1f4df0df2fd75338154c6be07.tar.gz rails-4f8a8e2c065e4db1f4df0df2fd75338154c6be07.tar.bz2 rails-4f8a8e2c065e4db1f4df0df2fd75338154c6be07.zip |
Gracefully handle disconnected clients
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.
Diffstat (limited to 'activerecord/lib/active_record/schema_dumper.rb')
0 files changed, 0 insertions, 0 deletions