lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev [dev.5] missed patchlet (clears interrupted xfer hang)


From: Kim DeVaughn
Subject: lynx-dev [dev.5] missed patchlet (clears interrupted xfer hang)
Date: Sun, 1 Aug 1999 07:08:34 -0600

The attached patchlet seems to have been overlooked for dev.5.

It clears a hang condition that can occur when the xfer of a
lengthy ftp: dir listing is interrupted by a "z" (or ^G).

For the details, see:

Subject:    [dev.4] patch for: partial not working on ftp:// url's (?)
Date:       Wed, 21 Jul 1999 12:15:45 -0600
Message-ID: <address@hidden>

and prior messages in the same thread.

Since it's so short, I'll just attach it again here ...

/kim


Against 2.8.3dev.5:

diff -uNr lynx-2.8.3-dev.5+kd.orig/WWW/Library/Implementation/HTFTP.c 
lynx-2.8.3-dev.5+kd/WWW/Library/Implementation/HTFTP.c
--- lynx-2.8.3-dev.5+kd.orig/WWW/Library/Implementation/HTFTP.c Wed Jul 14 
10:25:26 1999
+++ lynx-2.8.3-dev.5+kd/WWW/Library/Implementation/HTFTP.c      Sun Aug  1 
06:16:57 1999
@@ -2776,10 +2776,13 @@
     FREE(lastpath);
 
     if (server_type == APPLESHARE_SERVER ||
-       server_type == NETPRESENZ_SERVER) {
+       server_type == NETPRESENZ_SERVER ||
+        WasInterrupted)                     {
        /*
         *  Without closing the data socket first,
         *  the response(NIL) below hangs. - KW
+        *  Seems to also be needed if the xfer
+        *  was interrupted ("z" or ^G).  - KED
         */
        NETCLOSE(data_soc);
     }
##--eof--##

reply via email to

[Prev in Thread] Current Thread [Next in Thread]