You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2017/02/09 02:02:42 UTC
[trafficserver] branch master updated: Fix a build issue that use
of undeclared variables
This is an automated email from the ASF dual-hosted git repository.
maskit pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 734aa31 Fix a build issue that use of undeclared variables
734aa31 is described below
commit 734aa31e0e6b4b200f960eb2be0282ce4826b969
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Thu Feb 9 10:13:50 2017 +0900
Fix a build issue that use of undeclared variables
PR-1426 causes build error on some platforms which doesn't support congestion control.
---
iocore/net/P_UnixNetVConnection.h | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/iocore/net/P_UnixNetVConnection.h b/iocore/net/P_UnixNetVConnection.h
index 0999049..b6fcada 100644
--- a/iocore/net/P_UnixNetVConnection.h
+++ b/iocore/net/P_UnixNetVConnection.h
@@ -453,10 +453,11 @@ UnixNetVConnection::set_tcp_congestion_control(int side)
RecString congestion_control;
int ret;
- if (side == CLIENT_SIDE)
+ if (side == CLIENT_SIDE) {
ret = REC_ReadConfigStringAlloc(congestion_control, "proxy.config.net.tcp_congestion_control_in");
- else
+ } else {
ret = REC_ReadConfigStringAlloc(congestion_control, "proxy.config.net.tcp_congestion_control_out");
+ }
if (ret == REC_ERR_OKAY) {
int len = strlen(congestion_control);
@@ -475,7 +476,7 @@ UnixNetVConnection::set_tcp_congestion_control(int side)
}
return -1;
#else
- Debug("socket", "Setting TCP congestion control %.*s is not supported on this platform.", len, name);
+ Debug("socket", "Setting TCP congestion control is not supported on this platform.");
return -1;
#endif
}
--
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].