bpardee-net-http-persistent 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
metadata ADDED
@@ -0,0 +1,152 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bpardee-net-http-persistent
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 0
9
+ version: 1.0.0
10
+ platform: ruby
11
+ authors:
12
+ - Eric Hodel
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-09-10 00:00:00 -04:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: gene_pool
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 1
29
+ - 0
30
+ version: "1.0"
31
+ type: :runtime
32
+ version_requirements: *id001
33
+ - !ruby/object:Gem::Dependency
34
+ name: rubyforge
35
+ prerelease: false
36
+ requirement: &id002 !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ segments:
41
+ - 2
42
+ - 0
43
+ - 4
44
+ version: 2.0.4
45
+ type: :development
46
+ version_requirements: *id002
47
+ - !ruby/object:Gem::Dependency
48
+ name: hoe
49
+ prerelease: false
50
+ requirement: &id003 !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ segments:
55
+ - 2
56
+ - 6
57
+ - 2
58
+ version: 2.6.2
59
+ type: :development
60
+ version_requirements: *id003
61
+ description: |-
62
+ This is an experimental branch that implements a connection pool of
63
+ Net::HTTP objects instead of a connection/thread. C/T is fine if
64
+ you're only using your http threads to make connections but if you
65
+ use them in child threads then I suspect you will have a thread memory
66
+ leak. Also, I want to see if I get less connection resets if the
67
+ most recently used connection is always returned.
68
+
69
+ Also added a :force_retry option that if set to true will retry POST
70
+ requests as well as idempotent requests.
71
+
72
+ This branch is currently incompatible with the master branch in the
73
+ following ways:
74
+
75
+ * It doesn't allow you to recreate the Net::HTTP::Persistent object
76
+ on the fly. This is possible in the master version since all the
77
+ data is kept in thread local storage. For this version, you should
78
+ probably create a class instance of the object and use that in your
79
+ instance methods.
80
+
81
+ * It uses a hash in the initialize method. This was easier for me
82
+ as I use a HashWithIndifferentAccess created from a YAML file to
83
+ define my options. This should probably be modified to check the
84
+ arguments to achieve backwards compatibility.
85
+
86
+ * The method shutdown is unimplemented as I wasn't sure how I should
87
+ implement it and I don't need it as I do a graceful shutdown from
88
+ nginx to finish up my connections.
89
+
90
+ For connection issues, I completely recreate a new Net::HTTP instance.
91
+ I was running into an issue which I suspect is a JRuby bug where an
92
+ SSL connection that times out would leave the ssl context in a frozen
93
+ state which would then make that connection unusable so each time that
94
+ thread handled a connection a 500 error with the exception "TypeError:
95
+ can't modify frozen". I think Joseph West's fork resolves this issue
96
+ but I'm paranoid so I recreate the object.
97
+
98
+ Compatibility with the master version could probably be achieved by
99
+ creating a Strategy wrapper class for GenePool and a separate strategy
100
+ class with the connection/thread implementation.
101
+ email:
102
+ - drbrain@segment7.net
103
+ executables: []
104
+
105
+ extensions: []
106
+
107
+ extra_rdoc_files:
108
+ - History.txt
109
+ - Manifest.txt
110
+ - README.txt
111
+ files:
112
+ - .autotest
113
+ - History.txt
114
+ - Manifest.txt
115
+ - README.txt
116
+ - Rakefile
117
+ - lib/net/http/faster.rb
118
+ - lib/net/http/persistent.rb
119
+ - test/test_net_http_persistent.rb
120
+ has_rdoc: true
121
+ homepage: http://seattlerb.rubyforge.org/net-http-persistent
122
+ licenses: []
123
+
124
+ post_install_message:
125
+ rdoc_options:
126
+ - --main
127
+ - README.txt
128
+ require_paths:
129
+ - lib
130
+ required_ruby_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ segments:
135
+ - 0
136
+ version: "0"
137
+ required_rubygems_version: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - ">="
140
+ - !ruby/object:Gem::Version
141
+ segments:
142
+ - 0
143
+ version: "0"
144
+ requirements: []
145
+
146
+ rubyforge_project: bpardee-net-http-persistent
147
+ rubygems_version: 1.3.6
148
+ signing_key:
149
+ specification_version: 3
150
+ summary: This is an experimental branch that implements a connection pool of Net::HTTP objects instead of a connection/thread
151
+ test_files:
152
+ - test/test_net_http_persistent.rb