]> granicus.if.org Git - apache/commitdiff
Remove a vestige of the old timeout system. ident lookups need timeouts,
authorManoj Kasichainula <manoj@apache.org>
Wed, 1 Dec 1999 00:25:18 +0000 (00:25 +0000)
committerManoj Kasichainula <manoj@apache.org>
Wed, 1 Dec 1999 00:25:18 +0000 (00:25 +0000)
though.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84198 13f79535-47bb-0310-9956-ffa450edef68

server/rfc1413.c

index 8c73b912efc1b106dc254e442dd3cd6b937ef250..3bd66f573eaa61dce9db508e6818649bbed03da0 100644 (file)
@@ -55,6 +55,7 @@
  *
  */
 
+/* TODO - put timeouts back in */
 /*
  * rfc1413() speaks a common subset of the RFC 1413, AUTH, TAP and IDENT
  * protocols. The code queries an RFC 1413 etc. compatible daemon on a remote
@@ -77,7 +78,7 @@
 
 /* Rewritten by David Robinson */
 
-#include "httpd.h"             /* for server_rec, conn_rec, ap_longjmp, etc. */
+#include "httpd.h"             /* for server_rec, conn_rec, etc. */
 #include "http_log.h"          /* for aplog_error */
 #include "rfc1413.h"
 #include "http_main.h"         /* set_callback_and_alarm */
 
 int ap_rfc1413_timeout = RFC1413_TIMEOUT;      /* Global so it can be changed */
 
-static JMP_BUF timebuf;
-
 /* bind_connect - bind both ends of a socket */
 /* Ambarish fix this. Very broken */
 static int get_rfc1413(ap_socket_t *sock, const char *local_ip,
@@ -230,14 +229,8 @@ char *ap_rfc1413(conn_rec *conn, server_rec *srv)
        conn->remote_logname = result;
     }
 
-    /*
-     * Set up a timer so we won't get stuck while waiting for the server.
-     */
-    if (ap_setjmp(timebuf) == 0) {
-
-       if (get_rfc1413(sock, conn->local_ip, conn->remote_ip, user, srv) >= 0)
-           result = user;
-    }
+    if (get_rfc1413(sock, conn->local_ip, conn->remote_ip, user, srv) >= 0)
+        result = user;
     ap_close_socket(sock);
     conn->remote_logname = result;