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 posted in the list since last few month, we talked about this
>>> issue.
>> 
>> Francois,
>> 
>> I'm going to believe that something must be strange with your TCP
>> settings, because I can control the keep-alive stuff on W2K as well as
>> XP Sp2 just fine. 
>> 
>> To enable keep-alive packets an application has to call setsockopt().
>> If the application does not explizitly set KeepAliveTime and
>> KeepAliveInterval system settings apply. Either the defaults or the
>> values set in registry. But if the application sets KeepAliveTime and
>> KeepAliveInterval by a call to WSAIoctl() those custom values apply. So
>> current changes to the keep-alive stuff breaks backward compatibility
>> due to the hardcoded values (Angus already reported such a case with a
>> buggy router). 
> 
> I will remove this code in the next ICS beta upload.

But why? It works great here, please have a look at my changes.
http://www.duodata.de/misc/Wsocket.zip
By default it behaves exactly the same as in previous versions, but
optionally you can disable it as well as set custom keep-alive values.

Arno

> 
> --
> [EMAIL PROTECTED]
> http://www.overbyte.be
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to