On Fri, Feb 11, 2011 at 1:32 PM, Daniel Stenberg <[email protected]> wrote: > On Fri, 11 Feb 2011, Tolas Anon wrote: > >>> It is also very easy for an application to enable the options as I've >>> shown. >> >> Just not for the platforms i use, apparently.. :( > > Why not? A quick search for "tcp keepalive windows" shows this: > http://msdn.microsoft.com/en-us/library/ms819735.aspx
BUYAKAA! This fixed my problem in the simple test AND in my application! No need to send keep-alive bytes on the text/html level either. I just added the "KeepAliveTime" setting with windows 7 regedit.exe in HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/services/Tcpip, as a REG_DWORD value, set it to decimal 25000 (so 25 seconds), rebooted, and it all works as i want it now.. Note that windows registry entries key names are case-sensitive, wrong casing and they'll be deleted on restart. Lots of thanks, Daniel. I would've never solved this on my own.. I'll make an entry in the php.net website "comments" about this. ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
