em-http-test 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,11 +20,15 @@ module EventMachine::HttpTest
20
20
  end
21
21
 
22
22
  def toRequest
23
+ opts = {
24
+ :connect_timeout => 5, # default connection setup timeout
25
+ :inactivity_timeout => 30, # default connection inactivity (post-setup) timeout
26
+ }
23
27
  case @type
24
28
  when :GET
25
- EM::HttpRequest.new(@url).get @options
29
+ EM::HttpRequest.new(@url, opts).get @options
26
30
  when :POST
27
- EM::HttpRequest.new(@url).post @options
31
+ EM::HttpRequest.new(@url, opts).post @options
28
32
  end
29
33
  end
30
34
  end
@@ -1,5 +1,5 @@
1
1
  module EventMachine
2
2
  class HttpTest
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: em-http-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-05 00:00:00.000000000 Z
12
+ date: 2013-02-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: em-http-request