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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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.
 [2022-01-03 23:41 UTC] will at lolcat dot ca
I'd like to re-open this issue as its impossible to serve videos files without keep alive. When seeking the video, a 206 request should be made alongside a keepalive header so we can re-use the connection
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 11:01:30 2024 UTC