urllib2 slow for multiple requests

Tomas Svarovsky svarovsky.tomas at gmail.com
Thu May 14 06:10:51 EDT 2009


On May 14, 11:57 am, "Richard Brodie" <R.Bro... at rl.ac.uk> wrote:
> "cgoldberg" <cgoldb... at gmail.com> wrote in message
>
> news:9ae58862-1cb2-4981-ae6a-0428c7684feb at z5g2000vba.googlegroups.com...
>
> > you aren't doing a read(), so technically you are just connecting to
> > the web server and sending the request but never reading the content
> > back from the socket.
>
> > But that is not the problem you are describing...
>
> It might be, if the local server doesn't scale well enough to handle
> 100 concurrent requests.

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.

Thanks for reply



More information about the Python-list mailing list