[
https://issues.apache.org/jira/browse/THRIFT-999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bryan Duxbury closed THRIFT-999.
--------------------------------
Resolution: Fixed
Fix Version/s: 0.7
Assignee: Nick Jones (was: Bryan Duxbury)
I just committed this patch to TRUNK. My bad for not tagging it 0.6 so it'd go
in before I cut the branch. Thanks for the patch, Nick!
> 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
> Assignee: Nick Jones
> Priority: Minor
> Fix For: 0.7
>
> 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.