urllib2 slow for multiple requests

Richard Brodie R.Brodie at rl.ac.uk
Thu May 14 18:33:48 CEST 2009

"Tomas Svarovsky" <svarovsky.tomas at gmail.com> wrote in message 
news:747b0d4f-f9fd-4fa6-bb6d-0a4365f328ba at b1g2000vbc.googlegroups.com...

> This is a good point, but then it would manifest regardless of the
> language used AFAIK. And this is not the case, ruby and php
> implementations are working quite fine.

What I meant was: not reading the data and leaving the connection
open is going to force the server to handle all 100 requests concurrently.
I'm guessing that's not what your other implementations do.
What happens to the timing if you call response.read(), response.close() ? 

More information about the Python-list mailing list