cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_OPENSOCKETFUNCTION, disconnect?

From: thhk nhkr <thhknhkr_at_yahoo.com>
Date: Sun, 26 Apr 2009 01:17:43 -0700 (PDT)

--- On Fri, 4/24/09, Daniel Stenberg <daniel_at_haxx.se> wrote:

From: Daniel Stenberg <daniel_at_haxx.se>
Subject: Re: CURLOPT_OPENSOCKETFUNCTION, disconnect?
To: "libcurl development" <curl-library_at_cool.haxx.se>
Date: Friday, April 24, 2009, 11:48 AM

On Thu, 23 Apr 2009, thhk nhkr wrote:

> I tried using CURLOPT_OPENSOCKETFUNCTION option to fully control the sockets. So I opened the socket by myself and saved the fd, but what happens if the libcurl is deciding to disconnect the socket? Is there any indication?

Uh, no... I guess it would make perfect sense to also have a CLOSESOCKETFUNCTION. Was that more or less what you were looking for?

-- 
 / daniel.haxx.se
Thanks for the answer,
YES! that exactly what I was looking for.
Is this option implemented?
Thanks,
Thhk.
      
Received on 2009-04-26