Home » HTTP » HTTP_Request » Bug #4806
Implement keep-alive support
Details
| Request #4806 | Implement keep-alive support |
|---|---|
| Submitted | 2005-07-12 16:31 UTC |
| From | tjerk dot meesters at gmail dot com |
| Assigned | avb |
| Status | Closed |
| Package | HTTP_Request |
| PHP Version | 5_1 CVS-2005-07-12 |
| OS | WinXP |
| Roadmaps | (Not assigned) |
Comments
[2005-07-12 16:31 UTC] tjerk dot meesters at gmail dot com
Description:
------------
If keep-alive is given in the request headers on the client side, the response is read until eof is found; however, given the nature of keep-alive, the server end waits for another request and the socket is being kept open (for as long as the client specified in the 'keep-alive' header).
If content-length is given, this should be used to read exactly the amount necessary. Ofcourse, this should only be done if the server side agrees to use keep-alive (they may refuse to do so in which case the read-until-eof is okay), since this is more efficient.
[2005-07-13 09:50 UTC] tjerk dot meesters at gmail dot com
Okay, can I just leave it as a change request then? In some circumstances it's more efficient to grab all related content in one go (such as images, style sheets, etc.) over slow connections to minimize network traffic and latency.