cURL Mailing List Monthly Index Single Mail
curl-users Mailing List Archives
Re: FTP keep alive connection (Yang Tse)
Date: Fri, 4 Jan 2008 19:49:41 +0000 (GMT)
Yangtse wrote :
> I don't know how this should properly be fixed, so if someone else can
> help with this it would be nice.
> Right now we have this code effective in the curl tool:
> And it is causing some trouble on the TFTP tests. Specifically at
> least on cygwin and on AIX 5.1 autobuilds.
> 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 ?
RFC 1122 says (http://tools.ietf.org/html/rfc1122) :
184.108.40.206 TCP Keep-Alives
Implementors MAY include "keep-alives" in their TCP
implementations, although this practice is not universally
accepted. If keep-alives are included, the application MUST
be able to turn them on or off for each TCP connection, and
they MUST default to off.
It may be better to use a --keep-alive option rather than a --no-keep-alive option.
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr
These mail archives are generated by hypermail.
Page updated November 12, 2010.
web site info