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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73350e7f53d3119b0ba665d5228b6735b550bc13
4
- data.tar.gz: 30237aa995e8bf299eb04c42e0a676de2d103360
3
+ metadata.gz: bb4dab59e5e6a3ee9a8907bc6a0f41a46bea2d7f
4
+ data.tar.gz: c49aa3e36853f543b3547dfdd69abc1b1bf38b2b
5
5
  SHA512:
6
- metadata.gz: 86dcb970868729a1c292bddec3e35d48b7e50cebeaa62dfceea411ec056c5202cb8b517da0ecb3094b1a2d519a667b7299cfa772464c200c1a163205209fdb3d
7
- data.tar.gz: 645188e2ad4aa19a82382d330a56a7072b6190987ebcdb94b10faad246f0bcb952725325437ee5b4c66104c11111b3e993ad28c3896f03f6a6a515f894119e8a
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
- return if @interrupted and response_compression
306
- return response if @interrupted
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
@@ -28,5 +28,5 @@
28
28
  ###########################################################################
29
29
 
30
30
  module HttpStreamingClient
31
- VERSION = "0.9.5"
31
+ VERSION = "0.9.6"
32
32
  end
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.5
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-05-24 00:00:00.000000000 Z
11
+ date: 2014-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler