php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #69426 Built-in web server doesn't support persistent connections (keep-alive)
Submitted: 2015-04-11 10:45 UTC Modified: 2015-04-19 04:22 UTC
Votes:7
Avg. Score:4.4 ± 0.7
Reproduced:4 of 6 (66.7%)
Same Version:2 (50.0%)
Same OS:0 (0.0%)
From: brent dot newland at casipc dot com Assigned:
Status: No Feedback Package: Built-in web server
PHP Version: master-Git-2015-04-11 (snap) OS: Windows Server 2008 R2 x64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: brent dot newland at casipc dot com
New email:
PHP Version: OS:

 

 [2015-04-11 10:45 UTC] brent dot newland at casipc dot com
Description:
------------
Instead, it closes the connection after serving each file. I know it's just a testing server, but keep-alive connections shouldn't be a problem to add in. It is having an impact on testing scripts, since it's not behaving like most modern server programs.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-04-11 16:03 UTC] laruence@php.net
-Status: Open +Status: Feedback
 [2015-04-11 16:03 UTC] laruence@php.net
builtin server only have on process, if support keep-alive. then normal app (using ajax) won't be able to works properly ..
 [2015-04-11 16:03 UTC] laruence@php.net
s ,on,one,
 [2015-04-11 16:16 UTC] rasmus@php.net
It is also quite common for modern web servers to have keep-alive turned off for performance reasons. So if tests are breaking because of the lack of keep-alive, then those tests are not very good.
 [2015-04-14 08:13 UTC] brent dot newland at caispc dot com
>builtin server only have on process, if support keep-alive. then normal app (using ajax) won't be able to works properly ..

Isn't that what threads are for? A single port can have many connections, and a single process can have many threads.
 [2015-04-19 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Jan 27 02:01:24 2020 UTC