Skip to content

Commit

Permalink
Add comment about async pipelining
Browse files Browse the repository at this point in the history
  • Loading branch information
uNetworkingAB authored Jul 8, 2024
1 parent 933b984 commit 27848ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/HttpContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ struct HttpContext {
HttpResponseData<SSL> *httpResponseData = (HttpResponseData<SSL> *) 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<SSL>::HTTP_RESPONSE_PENDING) {
us_socket_close(SSL, (us_socket_t *) s, 0, nullptr);
return nullptr;
Expand Down

0 comments on commit 27848ed

Please sign in to comment.