lib/jrpc/transport/socket_tcp.rb in jrpc-1.1.3 vs lib/jrpc/transport/socket_tcp.rb in jrpc-1.1.4

- old
+ new

@@ -11,10 +11,10 @@ chunk = io_read[0].read_nonblock(length_to_read) received += chunk length_to_read -= chunk.bytesize end received - rescue Errno::EPIPE => e + rescue Errno::EPIPE, EOFError => e # EPIPE, in this case, means that the data connection was unexpectedly terminated. clear_socket! raise ReadFailedError, "#{e.class} #{e.message}" end