PaulDotCom mailing list archives
Re: Python and asynchronous sockets question
From: Jason Ish <lists () unx ca>
Date: Thu, 10 Jan 2013 10:03:49 -0600
On Thu, Jan 10, 2013 at 9:06 AM, allison nixon <elsakoo () gmail com> wrote:
Say I'm writing a broadscanner for a pet project and I accidentally wrote the entire thing in Python. Using asyncore and sockets, the best I can get is 3 http requests per second, maybe 10 per second at the very max. For a scanner this is of course, very lame. My goal is to of course make as many http request as a desktop computer will handle, so perhaps 200 per second with whatever number of sockets waiting in the background for a response(which I check periodically for a response and parse when I get it) Is there any way I can acheive 200 requests per second without learning another programming language?
Its hard to say without seeing the code.. But are you continuing to connect to other hosts (or do other work) between the call to connect, and its associated callback handle_connect?
_______________________________________________ Pauldotcom mailing list Pauldotcom () mail pauldotcom com http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom Main Web Site: http://pauldotcom.com
Current thread:
- Python and asynchronous sockets question allison nixon (Jan 10)
- Re: Python and asynchronous sockets question Scott Kragen (Jan 10)
- Re: Python and asynchronous sockets question allison nixon (Jan 10)
- Re: Python and asynchronous sockets question David Hoelzer (Jan 10)
- Re: Python and asynchronous sockets question MartÃn (Jan 10)
- Re: Python and asynchronous sockets question allison nixon (Jan 10)
- Re: Python and asynchronous sockets question Scott Kragen (Jan 10)
- Re: Python and asynchronous sockets question Karl Schuttler (Jan 10)
- Re: Python and asynchronous sockets question allison nixon (Jan 11)
- Re: Python and asynchronous sockets question allison nixon (Jan 10)
- Re: Python and asynchronous sockets question Scott Kragen (Jan 10)