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;
/* 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,
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;
/* 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,