summaryrefslogtreecommitdiff
path: root/network_io/beos
diff options
context:
space:
mode:
authorbjh <bjh@13f79535-47bb-0310-9956-ffa450edef68>2000-08-22 15:09:24 +0000
committerbjh <bjh@13f79535-47bb-0310-9956-ffa450edef68>2000-08-22 15:09:24 +0000
commit76aaec8ddeb33b35688822e341cf5137a5d8eb9e (patch)
tree10af9c598aa632103236ed9962d08c74bf64977e /network_io/beos
parent0f7c27bf94125eddd71a7afde4d897d01a9d2308 (diff)
downloadlibapr-76aaec8ddeb33b35688822e341cf5137a5d8eb9e.tar.gz
APRize disabling nagle (setting TCP_NODELAY).
Note that several areas have not been tested as they apply to MPMs or APR code that I can't test. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60508 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'network_io/beos')
-rw-r--r--network_io/beos/sockopt.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/network_io/beos/sockopt.c b/network_io/beos/sockopt.c
index c5921dfbc..5b09dcac0 100644
--- a/network_io/beos/sockopt.c
+++ b/network_io/beos/sockopt.c
@@ -107,6 +107,11 @@ apr_status_t apr_setsocketopt(apr_socket_t *sock, apr_int32_t opt, apr_int32_t o
sock->timeout = on;
}
+ if (opt & APR_TCP_NODELAY) {
+ if (setsockopt(sock->socketdes, IPPROTO_TCP, TCP_NODELAY, (void *)&on, sizeof(int)) == -1) {
+ return errno;
+ }
+ }
return APR_SUCCESS;
}
@@ -149,4 +154,4 @@ apr_status_t apr_get_remote_hostname(char **name, apr_socket_t *sock)
/* on BeOS h_errno is a global... */
return h_errno;
}
-#endif \ No newline at end of file
+#endif