Problems using SocketServer.ThreadingTCPServer

Joao Prado Maia JMaia at lexgen.com
Thu Jan 31 16:06:23 EST 2002


> -----Original Message-----
> From: Joseph A Knapka [mailto:jknapka at earthlink.net]
> Sent: Thursday, January 31, 2002 10:51 AM
> To: python-list at python.org
> Subject: Re: Problems using SocketServer.ThreadingTCPServer
> 
> 
> Joao Prado Maia wrote:
> > 
> > Well, correct me if I'm wrong but if OE is dropping the 
> connection, isn't
> > SocketServer.ThreadingTCPServer' job to call the correct 
> method on my class
> > ?
> 
> I'm not completely sure, but I think it's your job to detect
> end-of-connection in your handle() method and return. The
> TCPServer, I believe, just does:
> 
>     rqh = YourRequestHandlerClass(...)
>     rqh.setup()
>     rqh.handle()
>     rqh.finish()
> 

Well yes, but I'm already doing that on the line that does a 'continue' on
the loop, which breaks the loop (yes, I realize I should just 'break' it ;)
and returns from the handle() function.

It _seems_ like I'm doing the correct things, but I might be missing
something.

Cheers,
Joao


*************************************************************************** 
 The contents of this communication are intended only for the addressee and
may contain confidential and/or privileged material. If you are not the
intended recipient, please do not read, copy, use or disclose this
communication and notify the sender.  Opinions, conclusions and other
information in this communication that do not relate to the official
business of my company shall be understood as neither given nor endorsed by
it.  
*************************************************************************** 






More information about the Python-list mailing list