On Mon, 2003-02-10 at 09:51, Alexander V. Lukyanov wrote:
> On Thu, Feb 06, 2003 at 02:33:05PM +0000, Adam Greenbaum wrote:
> > 1. Using mirror over TLS connection I sometimes get:
> >
> >    mirror: SSL_write(control_ssl): Broken pipe
> 
> Does attached patch help?

Maybe. I have had transfers running for a day (using the patch) without
getting an SSL broken pipe. So either it's fixed the problem, or I can't
recreate the broken pipe to test how lftp reacts when it does get one.

> > 2. At the end of some file transfers (non ssl+ssl) lftp just says:
> > (100%) [Waiting for response...]
> 
> This means that lftp waits for 'Transfer complete' server message.
> I don't know why it is delivered with such a delay.
> 

For reference, this problem was down to my NAT box. During a lengthy
data transfer (>10 minutes) through the NAT box the idle control
connection was being dropped, and consequently the 'Transfer complete'
message would never arrive at the end of a file transfer. The easiest
way to fix this is to lower the tcp keepalive interval to below the
timeout on the NAT box.

On Linux:

/bin/echo "180" > /proc/sys/net/ipv4/tcp_keepalive_time

This sets the keepalive interval to 180 seconds. Be aware that this
generates extra network traffic for each idle tcp connection, so only
use this if you are sure the problem is as above.
 
> --
>    Alexander.

Thanks for your help, (Did I mention awesome program!?)

Adam.

Reply via email to