astro-em-http-request 0.2.7 → 0.2.8

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.7
1
+ 0.2.8
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{astro-em-http-request}
8
- s.version = "0.2.7"
8
+ s.version = "0.2.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ilya Grigorik", "Stephan Maka", "Julien Genestoux"]
@@ -189,6 +189,7 @@ module EventMachine
189
189
  attr_reader :response, :response_header, :errors
190
190
 
191
191
  def post_init
192
+ @max_duration_timer = nil
192
193
  @parser = HttpClientParser.new
193
194
  @data = EventMachine::Buffer.new
194
195
  @chunk_header = HttpChunkHeader.new
@@ -376,7 +377,7 @@ module EventMachine
376
377
  end
377
378
 
378
379
  def unbind
379
- @max_duration_timer.cancel if @max_duration_timer
380
+ EM.cancel_timer(@max_duration_timer) if @max_duration_timer
380
381
  if @state == :finished || (
381
382
  @state == :body &&
382
383
  @bytes_remaining.nil? &&
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: astro-em-http-request
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Grigorik