Hi,
swoole (http://php.net/manual/en/book.swoole.php) supports a HTTP/2 server. 
Please consider it.

在 2016年1月28日星期四 UTC+8上午10:14:54,Nicolas Noble写道:
>
> There are several problems with the idea of a gRPC server in PHP, and we 
> have no plans for that.
>
> Basically, the only way it would work, is if you run PHP "naked", without 
> its typical nginx or apache frontend. You can't serve a long-lived 
> streaming RPC from a PHP page using typical settings. The page will timeout 
> very quickly. You could theoretically restrict yourselves to server unary 
> RPCs only, or have an arbitrary duration on "streaming" RPCs, but that 
> wouldn't be "gRPC" anymore. And even then, there's no proper HTTP/2 support 
> in PHP at the moment. With the typical model of having a frontend that'll 
> forward the requests to PHP processes spawned on the fly, you wouldn't have 
> access to the full HTTP/2 stream, which is required to properly server gRPC 
> requests.
>
> For more on that, I invite you to research how to serve websockets from 
> PHP. Probably all of the solutions you'll find will be by running a naked 
> PHP process, without Apache. That isn't the typical way people want to use 
> PHP. So a gRPC server in PHP would be fairly useless as it'd require you to 
> run it in a very atypical deployment environment.
>
> On Wed, Jan 27, 2016 at 2:23 PM, <[email protected] <javascript:>
> > wrote:
>
>> Hey all—
>>
>> It appears as of right now you can only create CLIENTS in PHP, but not 
>> servers. I was wondering what the technical blockers behind this were and 
>> if it's on the roadmap for a future release?
>>
>> Thanks!
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "grpc.io" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/grpc-io/412dccb6-836e-4486-ab19-34701bec0562%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/grpc-io/412dccb6-836e-4486-ab19-34701bec0562%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/568508ae-824b-4c50-a350-561e0d8c970f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to