On 17 February 2010 10:56, gary clark wrote:
>
> Much appreciated the response. setTcpKeepAlive(1) is good for calling
> connectionLst, however I have to send a packet out to trigger this event.
> Its too bad, just had to send periodically a small stay-alive packet.
That's just a fact of life wit
sis
> Subject: Re: [Twisted-Python] Pulling the ethernet cable out
> To: "'Twisted general discussion'"
> Date: Tuesday, February 16, 2010, 2:47 PM
> Assuming you are on Linux, you can
> run
>
> #man tcp
>
> and take a look at the tunable
eral discussion
> Subject: Re: [Twisted-Python] Pulling the ethernet cable out
>
> Hey Alvin,
>
> In the document link you provided the packets are being sent periodically
> every 2 hours for setTcpKeepAlive(1). I am assuming that
> the a packet is sent straight away and then w
keep
alive is set.
Is there a way to change the delay?
Thanks,
Garyc
--- On Tue, 2/16/10, Alvin Delagon wrote:
> From: Alvin Delagon
> Subject: Re: [Twisted-Python] Pulling the ethernet cable out
> To: "Twisted general discussion"
> Date: Tuesday, February 16, 2010,
Hello,
No, getTcpKeepAlive will only tell you if SO_KEEPALIVE is enabled. It's
setTcpKeepAlive you want. If it's enabled, once the keepalive times out on a
half-open scenario, the connectionLost method will be triggered. You can
read the API docs here:
http://twistedmatrix.com/documents/8.2.0/api
I have to poll at the twisted server "getTcpKeepAlive" for the state of the
keep alive.
Thanks,
Garyc
--- On Tue, 2/16/10, gary clark wrote:
> From: gary clark
> Subject: [Twisted-Python] Pulling the ethernet cable out
> To: "Twisted general discussion"
> Date: Tuesday, February 16, 2010, 1
Much appreciated Alvin.
--- On Tue, 2/16/10, Alvin Delagon wrote:
> From: Alvin Delagon
> Subject: Re: [Twisted-Python] Pulling the ethernet cable out
> To: "Twisted general discussion"
> Date: Tuesday, February 16, 2010, 10:31 AM
> Hello Garyc,
> This is no
Hello Garyc,
This is not twisted's fault. Pulling a network plug doesn't tell the server
that the client went away immediately since the connection wasn't closed
properly. Pulling the plug produces TCP half-open scenario when one thinks
that the connection is still up. This can be remedied by
poll