diff options
Diffstat (limited to 'lib/unicorn')
-rw-r--r-- | lib/unicorn/http_server.rb | 1 | ||||
-rw-r--r-- | lib/unicorn/ssl_client.rb | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/unicorn/http_server.rb b/lib/unicorn/http_server.rb index ede6264..f942e2f 100644 --- a/lib/unicorn/http_server.rb +++ b/lib/unicorn/http_server.rb @@ -536,6 +536,7 @@ class Unicorn::HttpServer end @request.headers? or headers = nil http_response_write(client, status, headers, body) + client.shutdown # in case of fork() in Rack app client.close # flush and uncork socket immediately, no keepalive rescue => e handle_error(client, e) diff --git a/lib/unicorn/ssl_client.rb b/lib/unicorn/ssl_client.rb index 7b41cd2..a8c79e3 100644 --- a/lib/unicorn/ssl_client.rb +++ b/lib/unicorn/ssl_client.rb @@ -3,4 +3,9 @@ class Unicorn::SSLClient < Kgio::SSL alias write kgio_write alias close kgio_close + + # this is no-op for now, to be fixed in kgio-monkey if people care + # about SSL support... + def shutdown(how = nil) + end end |