Repository: trafficserver
Updated Branches:
  refs/heads/master 74c715e21 -> ba5c56428


TS-2520: Add TCP fastopen support for incoming TCP connections
Fixed unused variable warning


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/ba5c5642
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/ba5c5642
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/ba5c5642

Branch: refs/heads/master
Commit: ba5c564285aca46074435992112831dc85e7312b
Parents: 74c715e
Author: Bryan Call <[email protected]>
Authored: Wed Sep 16 14:49:09 2015 -0700
Committer: Bryan Call <[email protected]>
Committed: Wed Sep 16 14:49:09 2015 -0700

----------------------------------------------------------------------
 iocore/net/Connection.cc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/ba5c5642/iocore/net/Connection.cc
----------------------------------------------------------------------
diff --git a/iocore/net/Connection.cc b/iocore/net/Connection.cc
index 7d54618..c4784ca 100644
--- a/iocore/net/Connection.cc
+++ b/iocore/net/Connection.cc
@@ -155,10 +155,12 @@ Server::setup_fd_for_listen(bool non_blocking, int 
recv_bufsize, int send_bufsiz
 {
   int res = 0;
   int sockopt_flag_in = 0;
-  int tfo_queue_length = 0;
-
   REC_ReadConfigInteger(sockopt_flag_in, 
"proxy.config.net.sock_option_flag_in");
+
+#ifdef TCP_FASTOPEN
+  int tfo_queue_length = 0;
   REC_ReadConfigInteger(tfo_queue_length, 
"proxy.config.net.sock_option_tfo_queue_size_in");
+#endif
 
   ink_assert(fd != NO_FD);
 

Reply via email to