Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update from Net::HTTP to a more robust HTTP library #1

Open
elifoster opened this issue Mar 12, 2016 · 3 comments
Open

Update from Net::HTTP to a more robust HTTP library #1

elifoster opened this issue Mar 12, 2016 · 3 comments

Comments

@elifoster
Copy link

You really shouldn't be using Net/HTTP for production applications.
Here are many reasons why you should not use Net/HTTP:

  • single-threaded
  • poor connection design
    • opt-in to keep-alive
    • poor SSL support
  • does not support cookies
  • cannot follow redirects
  • It is one of the slowest HTTP clients for Ruby

I would recommend using one of the libcurl libraries, or one of the "original" ones (not built on top of Net/HTTP like most of the clients), such as curb, em-http-request, or the oldest and my personal favorite, httpclient.

Here's a nice slideshare to provide some statistical information regarding Ruby HTTP clients, made by Hiroshi Nakamura, Ruby developer and developer of HTTPClient: http://www.slideshare.net/HiroshiNakamura/rubyhttp-clients-comparison

@amcoder
Copy link
Owner

amcoder commented Mar 13, 2016

Good points. It should be updated to a more robust HTTP library. I'll take a look at your suggested options.

@amcoder amcoder changed the title Net::HTTP Update from Net::HTTP to a more robust HTTP library Mar 13, 2016
@edwanvi
Copy link

edwanvi commented Oct 25, 2016

It's been several months...any updates?

@amcoder
Copy link
Owner

amcoder commented Oct 27, 2016

@tkdberger Not right now. I haven't had much time to work on this recently and this is a low-priority change for me since the app is working at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants