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: