unicorn-simon 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/unicorn/http_request.rb +2 -3
- data/lib/unicorn/http_server.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31ad0a2ccf6cc4a817ccdc61381599b1a6514fc8
|
4
|
+
data.tar.gz: 5e7e82e3d702df34229d80423edadbd415e7bb3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b7a35d1f76ce03e6672c403cfd91b8be89896dc9d1da2b3c9aff907905d1723d2bc66b79f9bd9ef8771873306f07bb251c23094346c46d06c840ff04ac270d5
|
7
|
+
data.tar.gz: 9adf510a1199d9076e3f37448acfcac2e2b04c986fe0e9e0cfdebde69f131928d51869fbc6a535a64b5ea9cbf115ee1dcd1cbb26b1f6d43ea03cd611136c3d64
|
data/lib/unicorn/http_request.rb
CHANGED
@@ -84,7 +84,6 @@ def read(socket)
|
|
84
84
|
false until add_parse(socket.kgio_read!(16384))
|
85
85
|
end
|
86
86
|
|
87
|
-
# detect if the socket is valid by checking client connection.
|
88
87
|
check_client_connection(socket) if @@check_client_connection
|
89
88
|
|
90
89
|
e['rack.input'] = 0 == content_length ?
|
@@ -110,9 +109,9 @@ def hijacked?
|
|
110
109
|
private
|
111
110
|
|
112
111
|
def check_client_connection(socket)
|
113
|
-
if @@raindrops_tcp_info_defined
|
112
|
+
if @@raindrops_tcp_info_defined
|
114
113
|
tcp_info = Raindrops::TCP_Info.new(socket)
|
115
|
-
raise Errno::EPIPE, "client closed connection"
|
114
|
+
raise Errno::EPIPE, "client closed connection state=#{tcp_info.state} socket_class=#{socket.class}", [] if closed_state?(tcp_info.state)
|
116
115
|
elsif headers?
|
117
116
|
self.response_start_sent = true
|
118
117
|
HTTP_RESPONSE_START.each { |c| socket.write(c) }
|
data/lib/unicorn/http_server.rb
CHANGED
@@ -527,6 +527,7 @@ def maintain_worker_count
|
|
527
527
|
def handle_error(client, e)
|
528
528
|
code = case e
|
529
529
|
when EOFError,Errno::ECONNRESET,Errno::EPIPE,Errno::ENOTCONN
|
530
|
+
Unicorn.log_error(@logger, e.message, e)
|
530
531
|
# client disconnected on us and there's nothing we can do
|
531
532
|
when Unicorn::RequestURITooLongError
|
532
533
|
414
|