commit | 3e7fca421efe0c76bc493a4058d3667c540bcca4 | [log] [tgz] |
---|---|---|
author | David Reiss <dreiss@apache.org> | Sat Sep 19 01:59:13 2009 +0000 |
committer | David Reiss <dreiss@apache.org> | Sat Sep 19 01:59:13 2009 +0000 |
tree | 44809cd68dc6383bfaa37f95a793f1665169274e | |
parent | 0e8e6099e215f3a6adcb6e5c75e9dc8ad53a7a21 [diff] |
THRIFT-587. cpp: Properly set addrLen before accept calls git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@816850 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/server/TNonblockingServer.cpp b/lib/cpp/src/server/TNonblockingServer.cpp index 45f635c..32f021a 100644 --- a/lib/cpp/src/server/TNonblockingServer.cpp +++ b/lib/cpp/src/server/TNonblockingServer.cpp
@@ -591,6 +591,9 @@ // Put this client connection into the proper state clientConnection->transition(); + + // addrLen is written by the accept() call, so needs to be set before the next call. + addrLen = sizeof(addr); } // Done looping accept, now we have to make sure the error is due to