You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Bryan Duxbury (JIRA)" <ji...@apache.org> on 2010/11/16 19:50:16 UTC

[jira] Assigned: (THRIFT-999) Add TForkingServer

     [ https://issues.apache.org/jira/browse/THRIFT-999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bryan Duxbury reassigned THRIFT-999:
------------------------------------

    Assignee: Bryan Duxbury

> 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: Bryan Duxbury
>            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.