Add TForkingServer ------------------ Key: THRIFT-999 URL: https://issues.apache.org/jira/browse/THRIFT-999 Project: Thrift Issue Type: New Feature Components: PHP - Library Reporter: Nick Jones Priority: Minor Attachments: add-forking-server.patch
The PHP libs only have TSimpleServer implemented currently. Given PHP supports forking through the PCNTL functions, it's possible to add a TForkingServer implementation, much akin to the perl library implementation. Example code usage: {code} $processor = new SomeProcessor(new SomeHandler()); $transport = new TServerSocket(); $transport->setAcceptTimeout(1000); $transportFactory = new TTransportFactory(); $protocolFactory = new TBinaryProtocolFactory(); $server = new TForkingServer($processor, $transport, $transportFactory, $transportFactory, $protocolFactory, $protocolFactory); $server->serve(); {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.