cURL / Mailing Lists / curl-users / Single Mail


Re: FTP keep alive connection (Yang Tse)

From: <>
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 ? Hi, RFC 1122 says ( : 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
Received on 2008-01-04