(no) timeout for auth-requests by authprogs/ident

fany at noris.de fany at noris.de
Mon Apr 23 19:16:35 UTC 2001



Hi,

when querying hosts behind firewalls which deny auth-requests (that is,
they don't send reject packets), the authprogs/ident program shipped
with INN 2.3.{0,1} simply hangs forever, and thus also nnrpd just hangs;
neither can the user really connect, nor does he get any error message.

To circumvent this, I'd suggest the following modifications to
authprogs/ident.c to add a timeout of five seconds:

	10a11
	> #include <sys/signal.h>
	16a18,21
	> void out() {
	>     exit(1);
	> }
	>
	33a39,41
	>
	>     signal(SIGALRM,out);
	>     alarm(5);

Kind regards,
Martin.

-- 
.__________________________________________.                        _
| noris network AG | tel +49 911 93 52-112 | ASCII ribbon campaign ( )
| Kilianstraße 142 | fax +49 911 93 52-100 |  - against HTML email  X
| D-90425 Nürnberg | http://www.noris.net/ |              & vcards / \


More information about the inn-bugs mailing list