Skip to content

Commit

Permalink
Fix monitoring response with nginx proxy
Browse files Browse the repository at this point in the history
Signed-off-by: chatgris <jboyer@af83.com>
  • Loading branch information
chatgris committed Mar 17, 2014
1 parent 4c4bc7f commit 9b1783e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/sponges/listener.rb
Expand Up @@ -22,7 +22,8 @@ def handle_connection(connection)
response = Response.new(supervisor).to_json
connection.write headers(response)
connection.write response
connection.close
connection.close_write
connection.close_read
rescue Errno::EPIPE
# Resist to ping
end
Expand Down

0 comments on commit 9b1783e

Please sign in to comment.