Overview
| Artifact ID: | 4a5a5546599c244005c7269e381e14f0e087cd7e784624c25e131f42c3b1570e |
|---|---|
| Ticket: | 46b6edad51e645c70e88dd4f944a2d4afc63a96a
HTTP Keep-Alive with Pipelined requests fails |
| User & Date: | kjnash on 2018-04-12 14:16:02 |
Changes
- icomment:
Yes, I believe that if the changes in branch bug-46b6edad51-concurrent-http are accepted, they will fix bug a3dcbc5e6dd81251. The patch supplied with ticket a3dcbc5e6dd81251 makes three changes: 1. http::CloseSocket - when closing a socket, use sockettokenmap to reset tokens for any KA requests that use the socket. 2. http::geturl - create sockettokenmap as a list of tokens for KA-requests that use a particular socket. 3. http::wait - return immediately (without waiting) if the socket for a KA request is found to be closed. These changes handle some of the issues that arise when a persistent socket is half-closed by the server, but this event is not detected by the client. Branch bug-46b6edad51-concurrent-http handles this problem slightly differently: (a) when a persistent socket is idle, "fileevent readable" events are bound to http::CheckEof which closes the socket if it is half-closed by the server; (b) http::Event, http::Connect and http::Connected include code to handle an asynchronous close event when a persistent socket is used after a period of idleness; (c) if a request has not been completed when its persistent socket closes, its token is not reset (as in ticket a3dcbc5e6dd81251), but sent over a new connection; (d) several tests in tests/httpPipeline.test cover cases where the server half-closes a persistent socket either after timeout, or by unexpectedly sending a "Connection: close" header. The tests pass.
- login: "kjnash"
- mimetype: "text/plain"