commit | e02385b0b4e84aed0e456cb697a471c211705eba | [log] [tgz] |
---|---|---|
author | Mark Slee <mcslee@apache.org> | Sat Jun 09 01:21:16 2007 +0000 |
committer | Mark Slee <mcslee@apache.org> | Sat Jun 09 01:21:16 2007 +0000 |
tree | f1452d1f52603401032ba15b00dfc3248aaea576 | |
parent | 6ded775196d10f86ac5b99843f018aa2b29772b8 [diff] [blame] |
Add thread pool option to NonblockingServer Summary: If you want requests processed outside of the I/O thread Reviewed By: jake luciani, aditya Test Plan: nb-main.cpp, in the test folder git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665132 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/transport/TServerSocket.cpp b/lib/cpp/src/transport/TServerSocket.cpp index 0d25bf0..2f6ce5d 100644 --- a/lib/cpp/src/transport/TServerSocket.cpp +++ b/lib/cpp/src/transport/TServerSocket.cpp
@@ -68,8 +68,8 @@ intSock1_ = -1; intSock2_ = -1; } else { - intSock1_ = sv[0]; - intSock2_ = sv[1]; + intSock1_ = sv[1]; + intSock2_ = sv[0]; } serverSocket_ = socket(AF_INET, SOCK_STREAM, 0);