[
https://issues.apache.org/jira/browse/THRIFT-999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12932596#action_12932596
]
Bryan Duxbury commented on THRIFT-999:
--------------------------------------
Patch applies cleanly, looks alright. I don't have any personal experience with
this sort of thing, though. Anyone else want to chime in with a aye or nay? If
I don't get any complaints, I'll commit this before rolling an 0.6 release.
> 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.