Permalink
Browse files

unicorn: set check_client_connection option, but also disable tcp_nopush

  • Loading branch information...
1 parent e858764 commit fc2a566e0e53430f8b72af12024f2860c02f6830 @purcell committed Dec 9, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 unicorn-run
View
@@ -28,7 +28,7 @@ timeout 30
# listen on both a Unix domain socket and a TCP port,
listen '$THIS_DIR/socket', :backlog => 64
-listen '127.0.0.1:$PORT', :tcp_nopush => true
+listen '127.0.0.1:$PORT'
stderr_path "log/unicorn.stderr.log"
stdout_path "log/unicorn.stdout.log"
@@ -38,6 +38,8 @@ if GC.respond_to?(:copy_on_write_friendly=)
GC.copy_on_write_friendly = true
end
+check_client_connection true
+
# Prevent a dangling reference to the old working directory when restarting
# See https://willj.net/2011/08/02/fixing-the-gemfile-not-found-bundlergemfilenotfound-error/
before_exec do |server|

0 comments on commit fc2a566

Please sign in to comment.