From 7ca521dfdfd946a546ad81e8c61324776eaf7b73 Mon Sep 17 00:00:00 2001 From: "Victor J. Orlikowski" Date: Tue, 31 Jul 2001 19:19:34 +0000 Subject: [PATCH] After checking what this does with Bill Rowe, and discovering it to be dead 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 | 9 --------- modules/proxy/proxy_util.c | 28 ---------------------------- 2 files changed, 37 deletions(-) diff --git a/modules/proxy/mod_proxy.h b/modules/proxy/mod_proxy.h index 5fe352bc8b..9cf1c92a30 100644 --- a/modules/proxy/mod_proxy.h +++ b/modules/proxy/mod_proxy.h @@ -108,9 +108,6 @@ #include "mod_core.h" -#if APR_HAVE_NETDB_H -#include -#endif #if APR_HAVE_SYS_SOCKET_H #include #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; diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index 7560a12c94..c6ef5244cc 100644 --- a/modules/proxy/proxy_util.c +++ b/modules/proxy/proxy_util.c @@ -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 -- 2.40.0