diff --git a/src/HttpContext.h b/src/HttpContext.h index 1f47b8bca..7710bde62 100644 --- a/src/HttpContext.h +++ b/src/HttpContext.h @@ -149,7 +149,9 @@ struct HttpContext { HttpResponseData *httpResponseData = (HttpResponseData *) us_socket_ext(SSL, (us_socket_t *) s); httpResponseData->offset = 0; - /* Are we not ready for another request yet? Terminate the connection. */ + /* Are we not ready for another request yet? Terminate the connection. + * Important for denying async pipelining until, if ever, we want to suppot it. + * Otherwise requests can get mixed up on the same connection. We still support sync pipelining. */ if (httpResponseData->state & HttpResponseData::HTTP_RESPONSE_PENDING) { us_socket_close(SSL, (us_socket_t *) s, 0, nullptr); return nullptr;