[tin-dev] -C and timeout with low nntp_read_timeout_secs and huge group

Urs Janßen urs at tin.org
Wed Jul 19 00:21:21 CEST 2023


> ideas?

does something like this make any sense?

--- signal.c	2023-06-22 11:23:28.422832143 +0200
+++ signal.c	2023-07-19 00:14:57.823809184 +0200
@@ -432,7 +432,9 @@
 			if ((debug & DEBUG_NNTP) && verbose > 1)
 				debug_print_file("NNTP", "get_server() %d sec elapsed without response", tinrc.nntp_read_timeout_secs);
 #	endif /* DEBUG */
-			tin_done(NNTP_ERROR_EXIT, _("NNTP connection error. Exiting..."));
+			if (signal_context == cReconnect || prompt_yn(_("nntp_read_timeout_secs passed with no response; quit tin?"), FALSE) == 1)
+				tin_done(NNTP_ERROR_EXIT, _("NNTP connection error. Exiting..."));
+			RESTORE_HANDLER(sig, signal_handler);
 			return;
 #endif /* HAVE_ALARM && SIGALRM */
 



More information about the tin-dev mailing list