Skip to content

Commit ed1416c

Browse files
authored
Merge pull request #1172 from tempesta-tech/ik-1169-followup
Followup #1169: modify comment as suggested in review
2 parents a53a323 + ba5505c commit ed1416c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tempesta_fw/http.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3163,8 +3163,11 @@ tfw_http_resp_cache_cb(TfwHttpMsg *msg)
31633163

31643164
TFW_DBG2("%s: req = %p, resp = %p\n", __func__, req, resp);
31653165
/*
3166-
* Response will never be sent: client has disconnected already.
3167-
* Don't adjust response, simply destroy it.
3166+
* A client can disconnect at any time after the request was
3167+
* forwarded to backend. In this case the response will never be sent
3168+
* to the client. Keep the response until it's saved in the cache,
3169+
* so other clients can served from cache. After response is saved to
3170+
* cache it can be dropped.
31683171
*/
31693172
if (unlikely(test_bit(TFW_HTTP_B_REQ_DROP, req->flags))) {
31703173
TFW_DBG2("%s: resp=[%p] dropped: client disconnected\n",

0 commit comments

Comments
 (0)