cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: FTP keep alive connection (Yang Tse)

From: <autrelandes-curl_at_yahoo.fr>
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: > > http://cool.haxx.se/cvs.cgi/curl/src/main.c.diff?r1=1.435&r2=1.437 > > 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 ? Hi, RFC 1122 says (http://tools.ietf.org/html/rfc1122) : 4.2.3.6 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
Received on 2008-01-04