We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95160b3 commit 68c0710Copy full SHA for 68c0710
lib/mysql/protocol.rb
@@ -460,6 +460,7 @@ def read
460
raise EOFError unless ret && ret.length == len
461
data.concat ret
462
rescue EOFError
463
+ @socket.close rescue nil
464
raise ClientError::ServerGoneError, 'MySQL server has gone away'
465
rescue Errno::ETIMEDOUT
466
raise ClientError, "read timeout"
@@ -524,6 +525,7 @@ def write(data)
524
525
@socket.sync = true
526
@socket.flush
527
rescue Errno::EPIPE
528
529
530
531
raise ClientError, "write timeout"
0 commit comments