Re: [twsocket] Keepalive trouble

2007-04-03 Thread Arno Garrels
Markus Humm wrote: > Hello Arno, > > thanks for your replies! > >>> FreeAndNil(a); >> >> Oh, that's not a good idea, free it in SessionClose event. > > Okay, will try this. In the OnSessionClosed of that instance > a, right? Since the listening server socket won't get a session closed > because

Re: [twsocket] Keepalive trouble

2007-04-03 Thread Markus Humm
Hello Arno, thanks for your replies! >> FreeAndNil(a); > > Oh, that's not a good idea, free it in SessionClose event. Okay, will try this. In the OnSessionClosed of that instance a, right? Since the listening server socket won't get a session closed because he has no longer control about it.

Re: [twsocket] Keepalive trouble

2007-04-03 Thread Arno Garrels
Markus Humm wrote: > Hello, > > I've a TCP connection (simple TWSocket, only one PC may connect) and > want to implement some keep-alive now. The rest of the application > seems to work well, but the keepalive killed my whole day now without > much success. That's not difficult. > > Currently I

[twsocket] Keepalive trouble

2007-04-03 Thread Markus Humm
Hello, I've a TCP connection (simple TWSocket, only one PC may connect) and want to implement some keep-alive now. The rest of the application seems to work well, but the keepalive killed my whole day now without much success. Currently I'm doing this in the OnSessionAvailable of the server:

Re: [twsocket] keepalive

2006-03-10 Thread Dod
Hello Wilfried, Here are some other infos that may help/explain TcpMaxDataRetransmissions Key: Tcpip\Parameters Value Type: REG_DWORD-Number Valid Range: 0-0x Default: 5 Description: This parameter controls the number of times TCP will retransmit an individual data segment (

Re: [twsocket] keepalive

2006-03-09 Thread Arno Garrels
Wilfried Mestdagh wrote: > Hello Dod, > >> The connection will be >> aborted after the number of retransmissions specified by >> TcpMaxDataRetransmissions have gone unanswered. > > Does this means that there should be also a property > TcpMaxDataRetransmissions ? This isn't a prope

Re: [twsocket] keepalive

2006-03-09 Thread Wilfried Mestdagh
Hello Dod, > The connection will be > aborted after the number of retransmissions specified by > TcpMaxDataRetransmissions have gone unanswered. Does this means that there should be also a property TcpMaxDataRetransmissions ? And I also think this will have impact if there is many

Re: [twsocket] keepalive

2006-03-08 Thread Francois Piette
> optionally you can disable it as well as set custom keep-alive values. OK will look. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Arno Garrels" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Wednesday, March 08, 2006 2:06 PM Sub

Re: [twsocket] keepalive

2006-03-08 Thread Arno Garrels
Francois Piette wrote: Is there a way at the O/S level (unix-linux and windows) to set the keepalive for the O/S. Can you do it by port ? >>> >>> Yes, the last ICS V5 BETA contains code for setting the keepalive. >>> Experience show that it doesn't work on all the OS version. Search in >

Re: [twsocket] keepalive

2006-03-08 Thread Francois Piette
> >> Is there a way at the O/S level (unix-linux and windows) to set the > >> keepalive for the O/S. Can you do it by port ? > > > > Yes, the last ICS V5 BETA contains code for setting the keepalive. > > Experience show that it doesn't work on all the OS version. Search in > > messages posted in t

Re: [twsocket] keepalive

2006-03-08 Thread Arno Garrels
Arno Garrels wrote: > I don't like current implementation due to its hardcoded KeepAliveTime. > If I understand the M$ docs well, the default KeepAliveTime is 720 > msec. In previous ICS versions keep-alives have been enabled but only with > global system values (means KeepAliveTime & KeepAliv

Re: [twsocket] keepalive

2006-03-08 Thread Arno Garrels
Francois Piette wrote: >> Is there a way at the O/S level (unix-linux and windows) to set the >> keepalive for the O/S. Can you do it by port ? > > Yes, the last ICS V5 BETA contains code for setting the keepalive. > Experience show that it doesn't work on all the OS version. Search in > messages

Re: [twsocket] keepalive

2006-03-08 Thread Arno Garrels
george r smith wrote: > Hi all, > > > > Is there a way at the O/S level (unix-linux and windows) to set the > keepalive for the O/S. Can you do it by port ? > > We are losing connections and it seems to be on the server side. Yes you can, see Dod's reply, however latest TWSocket version sets t

Re: [twsocket] keepalive

2006-03-08 Thread Dod
Hello, About KeepAlive, here is what I found in a old TCP-IP NT5.0 white paper from Microsoft. TCP Keep-alive Messages A TCP keep-alive packet is simply an ACK with the sequence number set to one less than the current sequence number for the connection. A host receiving one of th

Re: [twsocket] keepalive

2006-03-08 Thread Francois Piette
> Is there a way at the O/S level (unix-linux and windows) to set the > keepalive for the O/S. Can you do it by port ? Yes, the last ICS V5 BETA contains code for setting the keepalive. Experience show that it doesn't work on all the OS version. Search in messages posted in the list since last f

[twsocket] keepalive

2006-03-07 Thread george r smith
Hi all, Is there a way at the O/S level (unix-linux and windows) to set the keepalive for the O/S. Can you do it by port ? We are losing connections and it seems to be on the server side. Thanks grs -- To unsubscribe or change your settings for TWSocket mailing list please goto http: