Change alterl thrift_server to use non-blocking TCP calls and properly set the proces...
authorDavid Reiss <dreiss@apache.org>
Wed, 11 Jun 2008 00:57:54 +0000 (00:57 +0000)
committerDavid Reiss <dreiss@apache.org>
Wed, 11 Jun 2008 00:57:54 +0000 (00:57 +0000)
commit8cf694d62d314de3501872656a662a825ff6c98d
treebe47de8fbf4dc18fd480df6c3df92b09b5aacf77
parent5541d658643bbd2c2e1c62ee489e25a7706b9d62
Change alterl thrift_server to use non-blocking TCP calls and properly set the processor as the controlling process for the client sockets.

Summary:
  - Removes the non-OTP "acceptor" process
  - The processor becomes the socket's controlling process instead of the transport, which is kind of messy, but it means we don't have to make a process for the socket_transport.
  - See http://www.trapexit.org/Building_a_Non-blocking_TCP_server_using_OTP_principles for non-blocking server info

Test plan:
  - Ran ThriftTest and StressTest

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666417 13f79535-47bb-0310-9956-ffa450edef68
lib/alterl/src/thrift_server.erl
test/erl/Makefile
test/erl/src/stress_server.erl