]> granicus.if.org Git - apache/commitdiff
Cleanup proxy timeouts a bit to remove emits and make consistent to
authorWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 14 Jun 2002 17:14:57 +0000 (17:14 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 14 Jun 2002 17:14:57 +0000 (17:14 +0000)
  vhost timeout.

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

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

index 5e5fabfab8a05a2bdf3710f8753037dd03216dbe..ec7899ec67383e17f53dbce66048e43c919f1ff1 100644 (file)
@@ -194,8 +194,8 @@ typedef struct {
     int error_override_set;
     int preserve_host;
     int preserve_host_set;
-    int timeout;
-    int timeout_set;
+    apr_interval_time_t timeout;
+    apr_interval_time_t timeout_set;
 
 } proxy_server_conf;
 
index 4bbcaf679e8474603a39c7cecd4460ab35d6a734..fcd2fbd0f4f4812443ffb0777f57a58627c26301 100644 (file)
@@ -968,11 +968,11 @@ int ap_proxy_ftp_handler(request_rec *r, proxy_server_conf *conf,
 
     /* Set a timeout on the socket */
     if (conf->timeout_set == 1) {
-        apr_setsocketopt(sock, APR_SO_TIMEOUT, conf->timeout);
+        apr_setsocketopt(sock, APR_SO_TIMEOUT, (int)conf->timeout);
     }
     else {
         apr_setsocketopt(sock, 
-                         APR_SO_TIMEOUT, r->server->timeout);
+                         APR_SO_TIMEOUT, (int)r->server->timeout);
     }
 
     ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
index 245e34bc253dc1c786e8f25d17bfb72dbd36244f..b460028dd1234231a783ff7c6d1a6535c6fe7e39 100644 (file)
@@ -319,7 +319,7 @@ apr_status_t ap_proxy_http_create_connection(apr_pool_t *p, request_rec *r,
         apr_size_t buffer_len = 1;
         char test_buffer[1]; 
         apr_status_t socket_status;
-        apr_int32_t current_timeout;
+        apr_short_interval_time_t current_timeout;
 
         /* use previous keepalive socket */
         *origin = backend->connection;
index 94106f8c9c3571506fe42fa51506ebd311cc627c..0914ee1ecb7f6be5f21c7b3fa77d00bf9d435163 100644 (file)
@@ -1158,10 +1158,10 @@ PROXY_DECLARE(int) ap_proxy_connect_to_backend(apr_socket_t **newsock,
 
         /* Set a timeout on the socket */
         if (conf->timeout_set == 1) {
-            apr_setsocketopt(*newsock, APR_SO_TIMEOUT, conf->timeout);
+            apr_setsocketopt(*newsock, APR_SO_TIMEOUT, (int)conf->timeout);
         }
         else {
-            apr_setsocketopt(*newsock, APR_SO_TIMEOUT, s->timeout);
+            apr_setsocketopt(*newsock, APR_SO_TIMEOUT, (int)s->timeout);
         }
 
         ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s,