Re: CLI Web Server customization
| From: | Yasuo Ohgaki | Date: | Thu, 07 Nov 2013 01:18:10 +0000 |
| Subject: | Re: CLI Web Server customization | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-70045@lists.php.net to get a copy of this message | ||
On Thu, Nov 7, 2013 at 7:42 AM, Ángel González <keisial@gmail.com> wrote:
> On 06/11/13 09:05, Yasuo Ohgaki wrote:
>
> Hi Angel,
>
> On Wed, Nov 6, 2013 at 4:32 PM, Ángel González <keisial@gmail.com> wrote:
>
>> It doesn't handle petitions concurrently, which bars its use on most
>> production environments.
>
>
> What do you mean?
> Could you explain little more?
>
> Regards,
>
> I was refering to the piece you mentioned before:
>
> BTW, Manual also states "Requests are served sequentially.", but it does
> not block
> concurrent requests. It may be misleading and not needed.
>
>
> It may be easier to explain with an example:
> $ echo '<?php sleep(10); echo "Hi";' > a.php
> $ echo '<?php echo "World";' > b.php
> $ php -S 127.0.0.1:8080
>
> If you now request a.php and b.php, using separate connections.
> a.php will take 10 seconds, but b.php will also take 10 seconds even
> though it is quick, as it will need to
> wait for a.php to finish.
Thank you.
Now I see what you mean.
CLI server is accepts multiple requests, but scripts are executed one by one
because there is only one PHP in there.
I'll update the manual 'requests' to 'script' also.
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net