On Thu, Feb 10, 2011 at 11:36 AM, Daniel Stenberg <dan...@haxx.se> wrote: > On Thu, 10 Feb 2011, Tolas Anon wrote: > >>> ... but it can enable and use TCP keep-alive. >> >> ok, can you tell me how to do this? or should i google for it..? > > It has to be done by the app that uses libcurl, and since the command line > tool curl already does it I guess it can serve as a pretty good example. See > > https://github.com/bagder/curl/blob/master/src/main.c#L1729 > ok, what we normally use is http://php.net/manual/en/function.curl-setopt.php
but that can't reach that CURLSOCKTYPE_IPCXN. nor CURLOPT_SOCKOPTFUNCTION. maybe i got this wrong, but wouldn't it be easier for users of libcurl to set this keep-alive functionality to "on" by default in libcurl? simple test with php-level text/html keep-alive bytes is still running btw. ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html