Paul Rubin wrote:
> If verify_request is finished before the new thread starts, then I'd
>
>think it could set a flag and the new thread could find it. You get a
>race condition only if both threads are trying to mess with the flag
>simultaneously.
>
>
Hmm, I think you're right. Thanks!
J
--
John Abel <[EMAIL PROTECTED]> writes:
> Unfortunately not. verify_request is called before process_request
> which launches the thread ( in the ThreadingMixIn version ). Unless I
> passed the flag as an argument to the thread, and then had it reset.
> Hm, worth thinking about,
If verify_requ
Paul Rubin wrote:
>John Abel <[EMAIL PROTECTED]> writes:
>
>
>>OK, I'm guessing what I was after ( see below ) isn't possible. Does
>>anyone know of an easy way of having verify_request inform the request
>>handler of certain events, say client is unauthorised? I thought of
>>having it set a f
John Abel <[EMAIL PROTECTED]> writes:
> OK, I'm guessing what I was after ( see below ) isn't possible. Does
> anyone know of an easy way of having verify_request inform the request
> handler of certain events, say client is unauthorised? I thought of
> having it set a flag, and referring to it f
dler class (
self.server.hostAllowed for example ), but that wouldn't work quite
right in a threaded server.
Any ideas?
J
Original Message
Subject: ReWrite Request Within SocketServer?
Date: Wed, 25 May 2005 17:04:53 +0100
From: John Abel <[EMAIL PROTECTED]>
To: python-
Hi!
I may be missing something simple, but is there a way to have
verify_request change the request before it gets processed by the
RequestHandlerClass?
Regards
J
--
http://mail.python.org/mailman/listinfo/python-list