Skip to content

Commit 2e3789a

Browse files
committed
Fix rails#724
This fixes an issue where, when the Spring client times out or otherwise disconnects from the server, that the server crashes with a `Broken pipe (Errno::EPIPE)` error.
1 parent c5987d5 commit 2e3789a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/spring/server.rb

+2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ def serve(client)
7474
end
7575
rescue SocketError => e
7676
raise e unless client.eof?
77+
rescue Errno::EPIPE => e
78+
log "client disconnected with error #{e.message}, ignoring command"
7779
ensure
7880
redirect_output
7981
end

0 commit comments

Comments
 (0)