You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by rr...@apache.org on 2019/06/05 00:45:33 UTC
[trafficserver] branch master updated: Use IPPROTO_TCP instead of
SOL_TCP for macOS compatibility
This is an automated email from the ASF dual-hosted git repository.
rrm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new fb01b45 Use IPPROTO_TCP instead of SOL_TCP for macOS compatibility
fb01b45 is described below
commit fb01b458a7bad248736ad6928b2182146bb15429
Author: Randall Meyer <rr...@apache.org>
AuthorDate: Tue Jun 4 15:17:19 2019 -0700
Use IPPROTO_TCP instead of SOL_TCP for macOS compatibility
IPPROTO_TCP should be more portable
---
tests/gold_tests/tls/ssl-post.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/gold_tests/tls/ssl-post.c b/tests/gold_tests/tls/ssl-post.c
index 1b3a2fb..35ec009 100644
--- a/tests/gold_tests/tls/ssl-post.c
+++ b/tests/gold_tests/tls/ssl-post.c
@@ -85,7 +85,7 @@ spawn_same_session_send(void *arg)
fcntl(sfd, F_SETFL, O_NONBLOCK);
// Make sure we are nagling
int one = 0;
- setsockopt(sfd, SOL_TCP, TCP_NODELAY, &one, sizeof(one));
+ setsockopt(sfd, IPPROTO_TCP, TCP_NODELAY, &one, sizeof(one));
SSL_CTX *client_ctx = SSL_CTX_new(SSLv23_client_method());
SSL *ssl = SSL_new(client_ctx);