Re: Stopping SocketServer on Python 2.5

2009-03-20 Thread Aahz
In article <45bd$0$2191$c3e8...@news.astraweb.com>, David George wrote: > >Thanks to everybody for helping me with this matter, but eventually >i've had to settle for a simpler and probably far less elegant solution >due to time constraints. > >It seems that SocketServer.py in 2.6 doesn't d

Re: Stopping SocketServer on Python 2.5

2009-03-12 Thread David George
On 2009-03-12 08:03:06 +, "Mark Tolonen" said: "Falcolas" wrote in message news:1b6a95a4-5680-442e-8ad0-47aa9ea08...@w1g2000prk.googlegroups.com... On Mar 11, 1:11 pm, David George wrote: Again, problem here is the issue of being unable to kill the server while it's waiting on a reque

Re: Stopping SocketServer on Python 2.5

2009-03-12 Thread Mark Tolonen
"Falcolas" wrote in message news:1b6a95a4-5680-442e-8ad0-47aa9ea08...@w1g2000prk.googlegroups.com... On Mar 11, 1:11 pm, David George wrote: Again, problem here is the issue of being unable to kill the server while it's waiting on a request. In theory, i could force it to continue by sending

Re: Stopping SocketServer on Python 2.5

2009-03-11 Thread Falcolas
On Mar 11, 1:11 pm, David George wrote: > Again, problem here is the issue of being unable to kill the server > while it's waiting on a request. In theory, i could force it to > continue by sending some sort of junk data with the method i use to > stop the server, but that seems a bit hacky, don't

Re: Stopping SocketServer on Python 2.5

2009-03-11 Thread David George
On 2009-03-11 19:02:26 +, Falcolas said: On Mar 11, 12:28 pm, David George wrote: On 2009-03-11 04:36:29 +, "Mark Tolonen" s aid: "David George" wrote in message news:00150e67$0$27956$c3e8...@news.astraweb.com... Hi guys, I've been developing some code for a university pr

Re: Stopping SocketServer on Python 2.5

2009-03-11 Thread Falcolas
On Mar 11, 12:28 pm, David George wrote: > On 2009-03-11 04:36:29 +, "Mark Tolonen" said: > > > > > > > "David George" wrote in message > >news:00150e67$0$27956$c3e8...@news.astraweb.com... > >> Hi guys, > > >> I've been developing some code for a university project using Python. > >> We've b

Re: Stopping SocketServer on Python 2.5

2009-03-11 Thread David George
On 2009-03-11 04:36:29 +, "Mark Tolonen" said: "David George" wrote in message news:00150e67$0$27956$c3e8...@news.astraweb.com... Hi guys, I've been developing some code for a university project using Python. We've been working on an existing codebase, cleaning it up and removing dea

Re: Stopping SocketServer on Python 2.5

2009-03-11 Thread Falcolas
On Mar 10, 7:19 pm, David George wrote: > So, my question is, is there any way to stop a SocketServer that's been > told to server forever in python 2.5? serve_forever, in python 2.5, is simply coded as: while 1: self.handle_request() So, instead of calling serve_forever, call handle_reques

Re: Stopping SocketServer on Python 2.5

2009-03-10 Thread Mark Tolonen
"David George" wrote in message news:00150e67$0$27956$c3e8...@news.astraweb.com... Hi guys, I've been developing some code for a university project using Python. We've been working on an existing codebase, cleaning it up and removing dead wood. We decided to make some changes to internal

Stopping SocketServer on Python 2.5

2009-03-10 Thread David George
Hi guys, I've been developing some code for a university project using Python. We've been working on an existing codebase, cleaning it up and removing dead wood. We decided to make some changes to internal message handling by using a SocketServer, which worked great when we were using 2.6, a