Use poll instead of select in TServerSocket
authorDavid Reiss <dreiss@apache.org>
Tue, 8 Apr 2008 06:26:27 +0000 (06:26 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 8 Apr 2008 06:26:27 +0000 (06:26 +0000)
commit1677ac9cc7550ea3eb4a4e46fbcf16790c2cb70c
tree0f9a9b18be398554c5d2a9096f475306e336a773
parent9b20955b2d4f651eaaec63736cb8aeaaed011be7
Use poll instead of select in TServerSocket

Summary: - select has a restricted max fd set size. While this should not be an issue in the normal case for
           TServerSocket because it is started when the process starts, it could be a problem if someone wanted
           to start a new server socket at a later point in time when socket values could be greater than max.

Reviewed By: dreiss

Test Plan: - Compiled.
           - Deployed search tier and made sure it could serve queries.

Revert: OK

TracCamp Project: Thrift

DiffCamp Revision: 11076

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665649 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/transport/TServerSocket.cpp