Comments (7)
Interesting. Can you post a gist to repro it? I know you can extract specific timings from libcurl (for DNS, time-on-wire, etc).
At the very least, does passing :disable_ssl_peer_verification => true to Typhoeus::Request.new make a difference?
from typhoeus.
I don't even need a gist. It happens the first time I run Typhoeus::Request.get("https://graph.facebook.com"). And I see the same slowness with (on the console): curl -v https://graph.facebook.com.
Tried the :disable_ssl_peer_verification but it had no effect. Neither does passing --insecure to curl.
Perhaps it's machine-specific? Perhaps it's specific to Facebook's servers? I'm not sure. But when I use rest_client (as in RestClient.get "https://graph.facebook.com") I don't experience the same slowness.
from typhoeus.
Ok, thanks for the info. I'll try to reproduce it on my machine in a bit here, and report back.
from typhoeus.
This information may be highly useful: http://curl.haxx.se/mail/lib-2010-04/0154.html
from typhoeus.
http://gist.github.com/415225 --> timing reports + my curl version / compile options
I get times of ~ 0.03 seconds hitting Google SSL and Facebook SSL pages from University of Washington campus.
Can you try a different machine? Different network connection?
I also get similar speeds from Typhoeus FWIW.
from typhoeus.
Interesting link, but do you have any reason to believe that the options being set are currently hampering libcurl's ability to reuse connections?
I'd like to look into why my machine is getting good speeds vs yours, before going down that road.
from typhoeus.
I'm closing this ticket unless there's a more reproducible issue that isn't local to your machine.
from typhoeus.
Related Issues (20)
- How to perform `curl --upload-file` HOT 4
- new release with the timeout changes
- Anyway change the output verbose of libcurl? HOT 1
- feature request: Enhance Request::Stubbable and Request::BlockConnection to partially allow "outside" connections
- Where does defulat `timeout` and `connecttimeout` come from? HOT 1
- Honor Content-Type charset HOT 3
- Empty headers when on_headers callback is called HOT 2
- Sending a header with an empty value
- Is there a way to set forbid_reuse in global config?
- NameError: method `call' not defined in Faraday::Adapter::Typhoeus HOT 3
- Test failures with ethon-0.16.0 HOT 2
- Segmentation fault HOT 2
- Implementing support for delay (retry-after on 429)
- Typehous Faraday Adapter timeouts not working
- tests fail with faraday 2 - faraday-typhoeus should be added as dependency in Gemfile
- No new tags since May 2020 HOT 5
- Could not open library 'libcurl' HOT 1
- How to use flags like OpenSSL::SSL::OP_LEGACY_SERVER_CONNECT? HOT 2
- Memoization does not work as expected HOT 1
- Typhoeus::Response::Informations#return_message test error with curl 8.9.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typhoeus.