https://github.com/drbrain/net-http-persistent
Thread-safe persistent connections with Net::HTTP
https://github.com/drbrain/net-http-persistent
Keywords from Contributors
activerecord activejob mvc rubygems rack sinatra ruby-gem sidekiq rake multithreading
Last synced: about 1 hour ago
JSON representation
Repository metadata
Thread-safe persistent connections with Net::HTTP
- Host: GitHub
- URL: https://github.com/drbrain/net-http-persistent
- Owner: drbrain
- Created: 2010-05-05T00:00:09.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2025-12-30T19:28:03.000Z (4 months ago)
- Last Synced: 2026-04-19T14:03:38.477Z (11 days ago)
- Language: Ruby
- Homepage: http://seattlerb.rubyforge.org/net-http-persistent
- Size: 410 KB
- Stars: 370
- Watchers: 10
- Forks: 119
- Open Issues: 21
- Releases: 3
-
Metadata Files:
- Readme: README.rdoc
- Changelog: History.txt
README.rdoc
= net-http-persistent
home :: https://github.com/drbrain/net-http-persistent
rdoc :: https://rubydoc.info/gems/net-http-persistent
== DESCRIPTION:
Manages persistent connections using Net::HTTP including a thread pool for
connecting to multiple hosts.
Using persistent HTTP connections can dramatically increase the speed of HTTP.
Creating a new HTTP connection for every request involves an extra TCP
round-trip and causes TCP congestion avoidance negotiation to start over.
Net::HTTP supports persistent connections with some API methods but does not
make setting up a single persistent connection or managing multiple
connections easy. Net::HTTP::Persistent wraps Net::HTTP and allows you to
focus on how to make HTTP requests.
== FEATURES/PROBLEMS:
* Supports TLS with secure defaults
* Thread-safe
* Pure ruby
== SYNOPSIS
The following example will make two requests to the same server. The
connection is kept alive between requests:
require 'net/http/persistent'
uri = URI 'http://example.com/awesome/web/service'
http = Net::HTTP::Persistent.new name: 'my_app_name'
# perform a GET
response = http.request uri
# create a POST
post_uri = uri + 'create'
post = Net::HTTP::Post.new post_uri.path
post.set_form_data 'some' => 'cool data'
# perform the POST, the URI is always required
response = http.request post_uri, post
# if you are done making http requests, or won't make requests for several
# minutes
http.shutdown
Please see the documentation on Net::HTTP::Persistent for more information,
including SSL connection verification, header handling and tunable options.
== INSTALL:
gem install net-http-persistent
== LICENSE:
(The MIT License)
Copyright (c) Eric Hodel, Aaron Patterson
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Owner metadata
- Name: Eric Hodel
- Login: drbrain
- Email:
- Kind: user
- Description:
- Website: http://blog.segment7.net
- Location: Seattle, WA
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/9831?u=8b0f24b977bba88107a25002828d8d5ce71196be&v=4
- Repositories: 130
- Last ynced at: 2023-04-10T07:28:08.324Z
- Profile URL: https://github.com/drbrain
GitHub Events
Total
- Create event: 4
- Commit comment event: 2
- Release event: 2
- Delete event: 1
- Pull request event: 15
- Fork event: 5
- Issues event: 6
- Watch event: 15
- Issue comment event: 15
- Push event: 10
- Pull request review event: 1
Last Year
- Release event: 2
- Delete event: 1
- Pull request event: 8
- Fork event: 3
- Issues event: 1
- Watch event: 6
- Issue comment event: 7
- Push event: 3
- Create event: 3
Committers metadata
Last synced: 2 days ago
Total Commits: 310
Total Committers: 48
Avg Commits per committer: 6.458
Development Distribution Score (DDS): 0.326
Commits in past year: 11
Committers in past year: 4
Avg Commits per committer in past year: 2.75
Development Distribution Score (DDS) in past year: 0.364
| Name | Commits | |
|---|---|---|
| Eric Hodel | d****n@s****t | 209 |
| David Rodríguez | d****z@r****t | 17 |
| Aaron Patterson | t****e@r****g | 16 |
| James Tucker | j****r@g****m | 9 |
| Hiroshi Hatake | c****c@g****m | 3 |
| Jakauppila | J****d@K****a | 3 |
| S. Brent Faulkner | b****r@s****m | 3 |
| Jean Boussier | j****r@g****m | 3 |
| Michael Grosser | m****l@g****t | 3 |
| Peter Goldstein | p****n@g****m | 2 |
| Joe Van Dyk | j****e@t****m | 2 |
| Hiroshi SHIBATA | h****t@r****g | 2 |
| T.J. Schuck | tj@g****m | 2 |
| Víctor Roldán Betancort | v****t@g****m | 2 |
| 284km | k****0@g****m | 1 |
| Aaron Stone | a****n@s****x | 1 |
| Bart de Water | b****r@g****m | 1 |
| Cedric Maion | c****c@m****m | 1 |
| Zachary Scott | z****y@z****t | 1 |
| Torsten Schönebaum | t****m@p****e | 1 |
| Tomas Koutsky | t****s@s****t | 1 |
| Peter Bakkum | p****c@v****u | 1 |
| Joseph West | j****e@k****m | 1 |
| James White | j****e@s****m | 1 |
| fatkodima | f****3@g****m | 1 |
| Yoshihiro TAKAHARA | y****a@g****m | 1 |
| Yohei Kitamura | y****a@m****m | 1 |
| Yap Sok Ann | s****n@g****m | 1 |
| Vít Ondruch | v****h@r****m | 1 |
| Vladimir Kochnev | h****e@y****u | 1 |
| and 18 more... | ||
Committer domains:
- shopify.com: 4
- ruby-lang.org: 2
- segment7.net: 1
- riseup.net: 1
- kauppi.la: 1
- grosser.it: 1
- tanga.com: 1
- getharvest.com: 1
- github.com: 1
- serendipity.cx: 1
- maion.com: 1
- zacharyscott.net: 1
- planquadrat-software.de: 1
- stepnivlk.net: 1
- virginia.edu: 1
- knowmore.com: 1
- songkick.com: 1
- mdsol.com: 1
- redhat.com: 1
- yandex.ru: 1
- puppetlabs.com: 1
- nicolassanguinetti.info: 1
- boedicker.org: 1
- lrowe.co.uk: 1
- kevinmcphillips.ca: 1
- rautanen.info: 1
- workato.com: 1
Issue and Pull Request metadata
Last synced: 6 days ago
Total issues: 44
Total pull requests: 80
Average time to close issues: about 2 years
Average time to close pull requests: over 1 year
Total issue authors: 42
Total pull request authors: 54
Average comments per issue: 2.25
Average comments per pull request: 1.78
Merged pull request: 53
Bot issues: 0
Bot pull requests: 0
Past year issues: 4
Past year pull requests: 4
Past year average time to close issues: 26 days
Past year average time to close pull requests: N/A
Past year issue authors: 3
Past year pull request authors: 3
Past year average comments per issue: 0.0
Past year average comments per pull request: 0.25
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- brauliobo (2)
- nachojorge (2)
- olleolleolle (1)
- jweir (1)
- felixonmars (1)
- dreilly1982 (1)
- semaperepelitsa (1)
- tablecell (1)
- jogendrajangid1 (1)
- miyazakt (1)
- tunepolo (1)
- confact (1)
- jjb (1)
- AnilRh (1)
- gdubicki (1)
Top Pull Request Authors
- grosser (4)
- casperisfine (4)
- deivid-rodriguez (4)
- petergoldstein (3)
- joevandyk (2)
- miyataka (2)
- saiqulhaq (2)
- cosmo0920 (2)
- sbfaulkner (2)
- sodabrew (2)
- olleolleolle (2)
- hsbt (2)
- fatkodima (2)
- stefanmb (2)
- dominicm (2)
Top Issue Labels
- Bug (3)
- Support (2)
- Feature (1)
Top Pull Request Labels
- Feature (1)
- Bug (1)
Package metadata
- Total packages: 7
-
Total downloads:
- rubygems: 390,216,430 total
- Total docker downloads: 1,182,798,914
- Total dependent packages: 307 (may contain duplicates)
- Total dependent repositories: 18,866 (may contain duplicates)
- Total versions: 146
- Total maintainers: 2
gem.coop: net-http-persistent
Manages persistent connections using Net::HTTP including a thread pool for connecting to multiple hosts. Using persistent HTTP connections can dramatically increase the speed of HTTP. Creating a new HTTP connection for every request involves an extra TCP round-trip and causes TCP congestion avoidance negotiation to start over. Net::HTTP supports persistent connections with some API methods but does not make setting up a single persistent connection or managing multiple connections easy. Net::HTTP::Persistent wraps Net::HTTP and allows you to focus on how to make HTTP requests.
- Homepage: https://github.com/drbrain/net-http-persistent
- Documentation: http://www.rubydoc.info/gems/net-http-persistent/
- Licenses: MIT
- Latest release: 4.0.8 (published 4 months ago)
- Last Synced: 2026-04-28T20:31:08.921Z (2 days ago)
- Versions: 54
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 195,114,887 Total
- Docker Downloads: 591,399,457
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.072%
- Downloads: 0.135%
- Docker downloads count: 0.155%
- Maintainers (2)
ubuntu-24.10: ruby-net-http-persistent
- Homepage: https://github.com/drbrain/net-http-persistent
- Licenses:
- Latest release: 4.0.2-2 (published 3 months ago)
- Last Synced: 2026-03-09T17:02:12.136Z (about 2 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.407%
- Forks count: 0.692%
- Stargazers count: 0.934%
rubygems.org: net-http-persistent
Manages persistent connections using Net::HTTP including a thread pool for connecting to multiple hosts. Using persistent HTTP connections can dramatically increase the speed of HTTP. Creating a new HTTP connection for every request involves an extra TCP round-trip and causes TCP congestion avoidance negotiation to start over. Net::HTTP supports persistent connections with some API methods but does not make setting up a single persistent connection or managing multiple connections easy. Net::HTTP::Persistent wraps Net::HTTP and allows you to focus on how to make HTTP requests.
- Homepage: https://github.com/drbrain/net-http-persistent
- Documentation: http://www.rubydoc.info/gems/net-http-persistent/
- Licenses: MIT
- Latest release: 4.0.8 (published 4 months ago)
- Last Synced: 2026-04-28T18:30:17.237Z (2 days ago)
- Versions: 54
- Dependent Packages: 307
- Dependent Repositories: 18,866
- Downloads: 195,101,543 Total
- Docker Downloads: 591,399,457
-
Rankings:
- Downloads: 0.136%
- Dependent packages count: 0.143%
- Docker downloads count: 0.231%
- Dependent repos count: 0.263%
- Average: 1.046%
- Forks count: 2.388%
- Stargazers count: 3.118%
- Maintainers (2)
proxy.golang.org: github.com/drbrain/net-http-persistent
- Homepage:
- Documentation: https://pkg.go.dev/github.com/drbrain/net-http-persistent#section-documentation
- Licenses:
- Latest release: v4.0.8+incompatible (published 4 months ago)
- Last Synced: 2026-04-29T02:21:17.442Z (2 days ago)
- Versions: 34
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Forks count: 2.404%
- Stargazers count: 3.055%
- Average: 6.459%
- Dependent packages count: 9.576%
- Dependent repos count: 10.802%
debian-13: ruby-net-http-persistent
- Homepage: https://github.com/drbrain/net-http-persistent
- Documentation: https://packages.debian.org/trixie/ruby-net-http-persistent
- Licenses:
- Latest release: 4.0.2-2 (published 3 months ago)
- Last Synced: 2026-03-13T14:09:43.896Z (about 2 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
guix: ruby-net-http-persistent
Persistent HTTP connection manager
- Homepage: https://github.com/drbrain/net-http-persistent
- Documentation: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/ruby-xyz.scm#n4371
- Licenses: expat
- Latest release: 4.0.2 (published about 2 months ago)
- Last Synced: 2026-04-27T16:17:18.965Z (3 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
Dependencies
- minitest ~> 5.15 development
- rdoc >= 4.0, < 7 development
- rake ~> 13.0
- rake-manifest ~> 0.2
- actions/checkout v4 composite
- ruby/setup-ruby v1 composite
- rubygems/release-gem v1 composite
- step-security/harden-runner v2 composite
- actions/checkout v2 composite
- ruby/setup-ruby v1 composite
Score: 31.01618172650889