cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: FTP keep alive connection

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 4 Jan 2008 11:55:04 -0800

On Fri, Jan 04, 2008 at 08:30:13PM +0100, Yang Tse wrote:
> The problem is that SO_KEEPALIVE is not supported by the underlying
> protocol. This makes connection attempt using curl to fail when trying
> to verify the tftpd server in the test harness.
>
> My hack at fixing this would be the attached patch. But I'm feeling
> that there might be better options to fix this.
>
> After all. Wasn't the above mentioned diff only intended to keep open
> the ftp control connection for very long file transfers ? Isn't it
> right now affecting all protocols ?

It sounds like a new curlsocktype purpose needs to be defined for UDP
protocols. But if there are no protocols that could be run over either
TCP or UDP, then curl should probably just keep track of when the URL
it requests is a UDP one and simply not set keepalive on it.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-01-04