This is particularly important in the case of FTP control connections,
which may be closed by rogue NAT/firewall devices detecting idle
connections on larger transfers which may take 5-10+ minutes.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
---
This is basically on the advice of Daniel Stenberg, who mentions that it's a
common problem that he's aware of. I have no idea if this is actually the fix
we're looking for and I'm still unable to reproduce, but it seems plausible
solution.
@@ -388,6 +445,8 @@ static int curl_download_internal(struct dload_payload *payload,
/* perform transfer */
payload->curlerr = curl_easy_perform(curl);
+ _alpm_log(handle, ALPM_LOG_DEBUG, "curl returned error %d from transfer
",
+ payload->curlerr);
/* disconnect relationships from the curl handle for things that might go out
* of scope, but could still be touched on connection teardown. This really
--
1.7.8.4
01-23-2012, 12:03 PM
Martti Kühne
lib/dload: enforce usage of TCP keepalives
On Sun, Jan 22, 2012 at 08:31:51PM -0500, Dave Reisner wrote:
>
> Also, fuck FTP.
>