diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2002-07-15 10:05:11 +0200 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2002-07-15 10:05:11 +0200 |
commit | ed8fc9abaef1ff689c07588d2599be85353f0e86 (patch) | |
tree | 4f5545d23ddf88bbf9c4c778c3bc7b76ad71e933 /server/listen.c | |
parent | Remove a time lookup that's now unnecessary (diff) | |
download | apache2-ed8fc9abaef1ff689c07588d2599be85353f0e86.tar.xz apache2-ed8fc9abaef1ff689c07588d2599be85353f0e86.zip |
http occurances to update for apr_socket_opt_get/set
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96057 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/listen.c')
-rw-r--r-- | server/listen.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/server/listen.c b/server/listen.c index 9e3701a5b0..ab7df87131 100644 --- a/server/listen.c +++ b/server/listen.c @@ -91,20 +91,20 @@ static apr_status_t make_sock(apr_pool_t *p, ap_listen_rec *server) apr_status_t stat; #ifndef WIN32 - stat = apr_setsocketopt(s, APR_SO_REUSEADDR, one); + stat = apr_socket_opt_set(s, APR_SO_REUSEADDR, one); if (stat != APR_SUCCESS && stat != APR_ENOTIMPL) { ap_log_perror(APLOG_MARK, APLOG_CRIT, stat, p, - "make_sock: for address %pI, setsockopt: (SO_REUSEADDR)", + "make_sock: for address %pI, apr_socket_opt_set: (SO_REUSEADDR)", server->bind_addr); apr_socket_close(s); return stat; } #endif - stat = apr_setsocketopt(s, APR_SO_KEEPALIVE, one); + stat = apr_socket_opt_set(s, APR_SO_KEEPALIVE, one); if (stat != APR_SUCCESS && stat != APR_ENOTIMPL) { ap_log_perror(APLOG_MARK, APLOG_CRIT, stat, p, - "make_sock: for address %pI, setsockopt: (SO_KEEPALIVE)", + "make_sock: for address %pI, apr_socket_opt_set: (SO_KEEPALIVE)", server->bind_addr); apr_socket_close(s); return stat; @@ -130,7 +130,7 @@ static apr_status_t make_sock(apr_pool_t *p, ap_listen_rec *server) * If no size is specified, use the kernel default. */ if (send_buffer_size) { - stat = apr_setsocketopt(s, APR_SO_SNDBUF, send_buffer_size); + stat = apr_socket_opt_set(s, APR_SO_SNDBUF, send_buffer_size); if (stat != APR_SUCCESS && stat != APR_ENOTIMPL) { ap_log_perror(APLOG_MARK, APLOG_WARNING, stat, p, "make_sock: failed to set SendBufferSize for " @@ -172,10 +172,10 @@ static apr_status_t make_sock(apr_pool_t *p, ap_listen_rec *server) * So set reuseaddr, but do not attempt to do so until we have the * parent listeners successfully bound. */ - stat = apr_setsocketopt(s, APR_SO_REUSEADDR, one); + stat = apr_socket_opt_set(s, APR_SO_REUSEADDR, one); if (stat != APR_SUCCESS && stat != APR_ENOTIMPL) { ap_log_perror(APLOG_MARK, APLOG_CRIT, stat, p, - "make_sock: for address %pI, setsockopt: (SO_REUSEADDR)", + "make_sock: for address %pI, apr_socket_opt_set: (SO_REUSEADDR)", server->bind_addr); apr_socket_close(s); return stat; |