Hi Matt,

Connection Refused basically means that the server socket is too busy to
handle another connection or it's maximum number of conversations has been
reached.

If it's too busy it's basically becuase it can't generate conversation
threads quick enough, or perhaps the conversation threads are not ending?

If it's to do with a maximum simultaeneous conversation count, you should be
able to set this somwhere in python. Don't know where though. Sorry :)

GBU
Matthew Sherborne

----- Original Message -----
From: "Matt Whiteley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 30, 2002 10:34 AM
Subject: HTTP Server


> Hi,
>
> I've recently written an HTTP service that uses the HTTP server from the
> BaseHTTPServer. I've very simply told it to serve forever and have a bit
of
> code at the back end in the handler.
>
> After writing this and debugging it, I did some testing of it and found
that
> anything over about 26 requests / sec to the code (port) was rejected as
TCP
> connection denied.
>
> What I'd like to know is :
> a) Does this sound right ?
> b) Would changing the spec of my machine alter this ? - PC/900Mhz/512Ram
> c) Can I get this any faster ?
> d) Does what I have in my handler affect these results or is it already in
a
> thread by then ?
>
> It seems a bit slow but admittedly, I've never done this before, in any
> language so 26 connections / sec could be quick ?
> It's not like my memory usage is up or the cpu is even touched really but
> just seems that Python can't accept more connections / sec. All tests were
> done locally and then accross a 100Mbit network and the same was observed.
>
> Any suggestions would be gratefully received
>
> Thanks
> Matt
>
>
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
> _______________________________________________
> ActivePython mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>

_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to