cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Socket options for data socket with active FTP

From: Gokhan Sengun <gokhansengun_at_gmail.com>
Date: Sun, 24 Jun 2012 22:36:58 +0300

Hi Jon,

>
> I am using an older version 7.21 and see a bugfix in 7.24.0 that says "call
> opensocket callback properly for active FTP". Is the
> CURL_SOCKOPTFUNCTION callback called after that version or is that some
> different callback?
>
>
Sorry, my previous answer was wrong. For an active FTP conn, given the fact
that the socket is created by the 'accept' call, curl does not call the
open/close-socket or sockopt callbacks.

Maybe we can think about an informative callback -- set with a new option
CURL_ACCEPTSOCKETFUNCTION to inform application if 'accept' creates a
socket for the data connection?

It looks to be a good idea.

@Daniel:

What do you think about it?

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-06-24