goliath-rack_proxy 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/goliath-rack_proxy.gemspec +1 -1
- data/lib/goliath/rack_proxy.rb +2 -1
- 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: 286f8e3a28f2ed207430e4107674e0d63c6fc402
|
4
|
+
data.tar.gz: 25876f371228c74715d45ff096825fa3b84c5294
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33c54b664d86d967ad1fd1bcf2fc8c5996ceae9c4586c791572731466137d3c401fd6b9fad7737232e74b8d0dc4b53e0a7336979ca69abd22d97b3a6b93ae6a2
|
7
|
+
data.tar.gz: '0957145d2940f2ea7a384082b40ffabec5c60cb6854d01f9e330036ccef634ac90487194b65a65ee481faa9d05b35994df4f4e6a442eca5d579d4376700090d7'
|
data/goliath-rack_proxy.gemspec
CHANGED
data/lib/goliath/rack_proxy.rb
CHANGED
@@ -89,7 +89,7 @@ module Goliath
|
|
89
89
|
[500, headers, body]
|
90
90
|
ensure
|
91
91
|
# request has finished, so we close the read end of the rack input
|
92
|
-
|
92
|
+
env["rack.input"].close_read
|
93
93
|
end
|
94
94
|
|
95
95
|
# Streams the response to the client.
|
@@ -209,6 +209,7 @@ module Goliath
|
|
209
209
|
# Pushes data to the queue, which is then popped in #read.
|
210
210
|
def write(data)
|
211
211
|
@data_queue.push(data) unless @data_queue.closed?
|
212
|
+
rescue ClosedQueueError
|
212
213
|
end
|
213
214
|
|
214
215
|
# Rewinds the cache IO if it's configured, otherwise raises Errno::ESPIPE
|