]> granicus.if.org Git - apache/commitdiff
After checking what this does with Bill Rowe, and discovering it to be dead
authorVictor J. Orlikowski <orlikowski@apache.org>
Tue, 31 Jul 2001 19:19:34 +0000 (19:19 +0000)
committerVictor J. Orlikowski <orlikowski@apache.org>
Tue, 31 Jul 2001 19:19:34 +0000 (19:19 +0000)
wood, I am tossing it.

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

modules/proxy/mod_proxy.h
modules/proxy/proxy_util.c

index 5fe352bc8b8052e336e1d31887273ea2f6df1a60..9cf1c92a3017b696b0dc9ec76faf4bcf39f03da2 100644 (file)
 #include "mod_core.h"
 
 
-#if APR_HAVE_NETDB_H
-#include <netdb.h>
-#endif
 #if APR_HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
@@ -183,12 +180,6 @@ typedef struct {
     char maxfwd_set;
 } proxy_server_conf;
 
-struct per_thread_data {
-    struct hostent hpbuf;
-    u_long ipaddr;
-    char *charpbuf[2];
-};
-
 typedef struct {
     conn_rec *connection;
     char *hostname;
index 7560a12c94760c85ac42297b3adbca9ec4e9d37e..c6ef5244cc7657bca6ed8205bf320ed52a6a6754 100644 (file)
@@ -1061,31 +1061,3 @@ PROXY_DECLARE(void) ap_proxy_reset_output_filters(conn_rec *c)
         }
     }
 }
-
-#if defined WIN32
-
-static DWORD tls_index;
-
-BOOL WINAPI DllMain (HINSTANCE dllhandle, DWORD reason, LPVOID reserved)
-{
-    LPVOID memptr;
-
-    switch (reason) {
-    case DLL_PROCESS_ATTACH:
-       tls_index = TlsAlloc();
-    case DLL_THREAD_ATTACH: /* intentional no break */
-       TlsSetValue (tls_index, malloc (sizeof (struct per_thread_data)));
-       break;
-    case DLL_THREAD_DETACH:
-       memptr = TlsGetValue (tls_index);
-       if (memptr) {
-           free (memptr);
-           TlsSetValue (tls_index, 0);
-       }
-       break;
-    }
-
-    return TRUE;
-}
-
-#endif