We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 933b984 commit 27848edCopy full SHA for 27848ed
src/HttpContext.h
@@ -149,7 +149,9 @@ struct HttpContext {
149
HttpResponseData<SSL> *httpResponseData = (HttpResponseData<SSL> *) us_socket_ext(SSL, (us_socket_t *) s);
150
httpResponseData->offset = 0;
151
152
- /* Are we not ready for another request yet? Terminate the connection. */
+ /* Are we not ready for another request yet? Terminate the connection.
153
+ * Important for denying async pipelining until, if ever, we want to suppot it.
154
+ * Otherwise requests can get mixed up on the same connection. We still support sync pipelining. */
155
if (httpResponseData->state & HttpResponseData<SSL>::HTTP_RESPONSE_PENDING) {
156
us_socket_close(SSL, (us_socket_t *) s, 0, nullptr);
157
return nullptr;
0 commit comments