http_streaming_client 0.9.5 → 0.9.6
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/CHANGELOG +4 -0
- data/lib/http_streaming_client/client.rb +10 -2
- data/lib/http_streaming_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb4dab59e5e6a3ee9a8907bc6a0f41a46bea2d7f
|
4
|
+
data.tar.gz: c49aa3e36853f543b3547dfdd69abc1b1bf38b2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9836708e4ee5dfb893885ea5567ed496f46f033f33db94dc85f40371644c17344c5b6c33496908cd7c24eadea15fcd1cf76d995bf74d70f9800cd6754d85cf72
|
7
|
+
data.tar.gz: 694cdd6a617cdd23ff9a61a61ef15e20e97e832c43266986f8d9caddddcae888e0780a3d960b834fbbc3e37fd6d0899fe45858c968fbd9317c23c7f5825121e3
|
data/CHANGELOG
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
http_streaming_client 0.9.6 (07.21.2014)
|
2
|
+
========================================
|
3
|
+
* Fixed bug with connection close and uncompressed chunked transfer encoding
|
4
|
+
|
1
5
|
http_streaming_client 0.9.5 (05.23.2014)
|
2
6
|
========================================
|
3
7
|
* Added logging tag functions to add tags to log messages for multi-threaded environments
|
@@ -300,16 +300,24 @@ module HttpStreamingClient
|
|
300
300
|
|
301
301
|
if !block_given? then
|
302
302
|
logger.debug "no block specified, returning chunk results and halting streaming response"
|
303
|
+
# flush any remaining uncompressed chunked decoder bytes into response by pushing a newline
|
304
|
+
decoder << "\n" if !response_compression and decoder.size > 0
|
303
305
|
return response
|
304
306
|
else
|
305
|
-
|
306
|
-
|
307
|
+
if @interrupted then
|
308
|
+
return if response_compression
|
309
|
+
# flush any remaining uncompressed chunked decoder bytes into response by pushing a newline
|
310
|
+
decoder << "\n" if !response_compression and decoder.size > 0
|
311
|
+
return response
|
312
|
+
end
|
307
313
|
end
|
308
314
|
|
309
315
|
end
|
310
316
|
|
311
317
|
logger.debug "socket EOF detected" if socket.eof?
|
312
318
|
raise ReconnectRequest if @reconnect_requested
|
319
|
+
# flush any remaining uncompressed chunked decoder bytes into response by pushing a newline
|
320
|
+
decoder << "\n" if !response_compression and decoder.size > 0
|
313
321
|
return response
|
314
322
|
|
315
323
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http_streaming_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Tompkins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|