bpardee / persistent_http Goto Github PK
View Code? Open in Web Editor NEWPersistent http connections using a connection pool
License: MIT License
Persistent http connections using a connection pool
License: MIT License
Is is possible to set the read_timeout when using this gem?
$ rake test --trace
** Invoke test (first_time)
** Execute test
Run options:
................................I, [2012-07-22T22:19:18.566351 #10927] INFO -- : PersistentHTTP-example.com:80: Waiting for an available connection, all 3 connections are checked out.
W, [2012-07-22T22:19:20.567528 #10927] WARN -- : PersistentHTTP-example.com:80: It took 2.00116 seconds to obtain a connection. Consider raising the pool size which is currently set to 3.
E..
Finished tests in 2.035991s, 17.1906 tests/s, 65.8156 assertions/s.
remove' called for #<PersistentHTTP:0x007fcb21a4f558> /Users/phil/src/github/persistent_http/test/persistent_http_test.rb:522:in
block (6 levels) in class:PersistentHTTPTest'with_connection' /Users/phil/src/github/persistent_http/test/persistent_http_test.rb:512:in
block (5 levels) in class:PersistentHTTPTest'with_connection' /Users/phil/src/github/persistent_http/test/persistent_http_test.rb:510:in
block (4 levels) in class:PersistentHTTPTest'with_connection' /Users/phil/src/github/persistent_http/test/persistent_http_test.rb:509:in
block (3 levels) in class:PersistentHTTPTest'times' /Users/phil/src/github/persistent_http/test/persistent_http_test.rb:507:in
block (2 levels) in class:PersistentHTTPTest'call' /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/gems/1.9.1/gems/shoulda-context-1.0.0/lib/shoulda/context/context.rb:398:in
block in create_test_from_should_hash'35 tests, 134 assertions, 0 failures, 1 errors, 0 skips
rake aborted!
Command failed with status (1): [/usr/local/Cellar/ruby/1.9.3-p125/bin/ruby...]
/usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rake/file_utils.rb:53:in block in create_shell_runner' /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rake/file_utils.rb:45:in
call'
/usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rake/file_utils.rb:45:in sh' /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rake/file_utils_ext.rb:39:in
sh'
/usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rake/file_utils.rb:82:in ruby' /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rake/file_utils_ext.rb:39:in
ruby'
/usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rake/testtask.rb:99:in block (2 levels) in define' /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rake/file_utils_ext.rb:60:in
verbose'
/usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rake/testtask.rb:98:in block in define' /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rake/task.rb:205:in
call'
/usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rake/task.rb:205:in block in execute' /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rake/task.rb:200:in
each'
/usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rake/task.rb:200:in execute' /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rake/task.rb:158:in
block in invoke_with_call_chain'
/usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/monitor.rb:211:in mon_synchronize' /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rake/task.rb:151:in
invoke_with_call_chain'
/usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rake/task.rb:144:in invoke' /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rake/application.rb:116:in
invoke_task'
/usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rake/application.rb:94:in block (2 levels) in top_level' /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rake/application.rb:94:in
each'
/usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rake/application.rb:94:in block in top_level' /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rake/application.rb:133:in
standard_exception_handling'
/usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rake/application.rb:88:in top_level' /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rake/application.rb:66:in
block in run'
/usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rake/application.rb:133:in standard_exception_handling' /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rake/application.rb:63:in
run'
/usr/local/Cellar/ruby/1.9.3-p125/bin/rake:32:in `
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.