Re: Set idle timeout?
Joe Orton <[email protected]>
| Newsgroups | gmane.comp.web.sitecopy |
|---|---|
| Message-ID | <[email protected]> |
On Tue, May 17, 2005 at 01:40:02PM -0400, Tobey Wheelock wrote:
> On Sat, May 14, 2005 at 12:34:18PM +0100, Joe Orton wrote:
> > I'm not sure exactly what you're describing here. Can you show the debug
> > output around the timeout error?
...
> File: public_html/includes/kill-session.php
> Getting modtime.
> > MDTM public_html/includes/kill-session.php
> < 421 No Transfer Timeout (300 seconds): closing control connection.
> Didn't get modtime.
Actually, looking at the RFC, 421 is a special response code; so
sitecopy should maybe close and re-open the control connection then
retry the command on seeing this.
Could you try this patch?
Index: src/ftp.c
===================================================================
--- src/ftp.c (revision 608)
+++ src/ftp.c (working copy)
@@ -339,8 +339,10 @@
case 221:
/* succesful QUIT reseponse. */
return FTP_CLOSED;
- case 421: /* service denied */
- return FTP_DENIED;
+ case 421: /* service denied; PI connection closure */
+ ne_sock_close(sess->pisock);
+ sess->connected = 0;
+ return FTP_BROKEN;
case 553: /* couldn't create directory */
return FTP_ERROR;
case 213: /* MDTM response, hopefully */
_______________________________________________
sitecopy maillist - [email protected]
http://dav.lyra.org/mailman/listinfo/sitecopy