Why Nginx Doesn't Implement FastCGI Multiplexing?

Maxim Dounin mdounin at mdounin.ru
Mon Sep 15 10:43:33 UTC 2014


On Sun, Sep 14, 2014 at 09:22:48PM +0200, Wter S. wrote:

> Question about FastCGI: How it handle simultaneous connections with one 
> process when PHP itself is blocking language ? What if I have something 
> "sleep(100)" . Wont it block the process for the other users ?
> Thanks

FastCGI doesn't imply PHP (and, actually, PHP doesn't imply 
blocking as well - there are some event-driven PHP frameworks out 

As of now, implementation of the FastCGI protocol in PHP doesn't 
support FastCGI multiplexing at all, and that's one of the reasons 
why nginx doesn't implement FastCGI multiplexing as well.  Quoting 
the message you've replied to:

> > ...  Another reason is that multiplexing isn't
> > supported (and probably will never be) by the major FastCGI
> > application - PHP.

Maxim Dounin

More information about the nginx mailing list