cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: php curl_exec won't return any data, libcurl-7.21.3.0, php 5.3.4, WampServer2.1d-x64.exe

From: Tolas Anon <tolas777_at_gmail.com>
Date: Thu, 10 Feb 2011 11:49:00 +0100

On Thu, Feb 10, 2011 at 11:36 AM, Daniel Stenberg <daniel_at_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
Received on 2011-02-10