about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2023-10-27 00:25:32 +0000
committerThomas E. Dickey <dickey@invisible-island.net>2023-10-27 08:03:39 +0000
commitae8afd251f08aa6ce99daf430c411dda178327c6 (patch)
treecee62d1c5b9b359b1c771dbdd3426d2eea42c733
parent6648ccd05b432cb624499b899aa3d8c7e3fd1f18 (diff)
downloadlynx-snapshots-ae8afd251f08aa6ce99daf430c411dda178327c6.tar.gz
snapshot of project "lynx", label v2-9-0dev_12l
-rw-r--r--CHANGES6
-rw-r--r--WWW/Library/Implementation/HTTCP.c5
2 files changed, 8 insertions, 3 deletions
diff --git a/CHANGES b/CHANGES
index 64f883f3..06095059 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,9 +1,11 @@
--- $LynxId: CHANGES,v 1.1145 2023/10/25 22:44:54 tom Exp $
+-- $LynxId: CHANGES,v 1.1146 2023/10/27 00:25:32 tom Exp $
 ===============================================================================
 Changes since Lynx 2.8 release
 ===============================================================================
 
-2023-10-25 (2.9.0dev.13)
+2023-10-26 (2.9.0dev.13)
+* handle errno EINPROGRESS in HTDoRead() from nonresponsive server (Debian
+  #1033423) -TD
 * add a NUL after "/" in the SGML parser when the next character is ">", to
   make PRETTYSRC view display correctly (report by "Dima") -TD
 * trim some obsolete style code for NeXT -TD
diff --git a/WWW/Library/Implementation/HTTCP.c b/WWW/Library/Implementation/HTTCP.c
index ee164610..f0d6f3a7 100644
--- a/WWW/Library/Implementation/HTTCP.c
+++ b/WWW/Library/Implementation/HTTCP.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: HTTCP.c,v 1.165 2023/10/24 08:15:04 tom Exp $
+ * $LynxId: HTTCP.c,v 1.166 2023/10/27 00:16:33 tom Exp $
  *
  *			Generic Communication Code		HTTCP.c
  *			==========================
@@ -2489,6 +2489,9 @@ int HTDoRead(int fildes,
 	    break;
 	} else if (ret > 0) {
 	    ready = TRUE;
+	} else if (ret == 0 && (errno == EINPROGRESS || errno == EALREADY)) {
+	    result = 0;
+	    break;
 	} else if (HTWasInterrupted(&result)) {
 	    break;
 	}