lib/ruby_fs/stream.rb in ruby_fs-0.3.1 vs lib/ruby_fs/stream.rb in ruby_fs-1.0.0
- old
+ new
@@ -33,10 +33,10 @@
def run
logger.debug "Starting up..."
@socket = TCPSocket.from_ruby_socket ::TCPSocket.new(@host, @port)
post_init
loop { receive_data @socket.readpartial(4096) }
- rescue EOFError, IOError
+ rescue EOFError, IOError, Errno::ECONNREFUSED
logger.info "Client socket closed!"
terminate
end
#