[Twisted-web] Re: xmlrpc web2 connection lost
Andrey
alpha04 at netvigator.com
Thu May 17 02:58:25 EDT 2007
first of all, thank you for your reply
got it now. thanks a lot
so in order to achive the 'flush db' task for my xmlrpc service, i had setup
a timer loop (reactor.callLater())
monitoring the last-touch timestamp, and if its old, say 30secs before, then
i will flush the DB.
are there better way or i m on the right direction?
Thanks
Andrey
"David Reid" <dreid at dreid.org> wrote in message
news:0F6F6ACF-E5AF-486B-81FC-8263E6D5D3D6 at dreid.org...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> On May 16, 2007, at 2:27 PM, Andrey wrote:
>
>> Hi
>>
>> I have a xmlrpc service running in web2, application high lvl structure.
>>
>> I wonder what should i do if i want to know when the client's connection
>> is
>> finished,
>> so that i can flush some transaction.
>
> HTTP is a stateless protocol. The TCP connection is completely unrelated
> to the Request & Responses. As a result web2 exposes no way of dealing
> with the underlying connections. There are lots of ways to shoehorn
> state into HTTP (sessions via cookies (or if you're using XML-RPC just an
> argument that is passed to all the commands.)) 99.9% of the time the
> underlying TCP connection is meaningless.
>
> - -David
> http://dreid.org/
>
> "Usually the protocol is this: I appoint someone for a task,
> which they are not qualified to do. Then, they have to fight
> a bear if they don't want to do it." -- Glyph Lefkowitz
>
>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (Darwin)
>
> iD8DBQFGS+bMrsrO6aeULcgRAqbnAJ49AVe3+HAGHX+1VYxkTygKreictwCghffQ
> XCcEQJMng3AM5ZNNDaq/5kQ=
> =ZkhU
> -----END PGP SIGNATURE-----
More information about the Twisted-web
mailing list