evdb / HTTP-Async

process multiple HTTP requests in parallel without blocking
http://search.cpan.org/dist/HTTP-Async/lib/HTTP/Async.pm
8 stars 14 forks source link

Adding requests doesn't seem to be asynchronous #13

Closed notr1ch closed 8 years ago

notr1ch commented 8 years ago

Not sure if this is by design or a bug, but when I'm adding HTTP::Requests to https sites it seems there is a small blocking delay after adding each request. With 30 requests, it takes ~ 4 seconds to add them to the HTTP::Async object before I can begin polling for responses.

I initially thought maybe a blocking DNS lookup was to blame but the hostnames are all in the localhost DNS cache so it should be very fast. Any ideas?

notr1ch commented 8 years ago

Sorry, just saw the TODO and this is currently known behavior.

kaoru commented 8 years ago

No worries @notr1ch :) Thanks for using HTTP::Async!

dorszman commented 6 years ago

I've a fix for this. Please find in pull requests: SSL: async connection