http: confirm postponed connection close 23/42323/2
authorMatus Fabian <[email protected]>
Tue, 4 Feb 2025 13:41:55 +0000 (08:41 -0500)
committerDave Wallace <[email protected]>
Thu, 6 Feb 2025 17:28:01 +0000 (17:28 +0000)
Type: fix

Change-Id: I43a221ac2be9bbea885116c12d1991cf4477fae8
Signed-off-by: Matus Fabian <[email protected]>
(cherry picked from commit 94f6034af5894ecf23fa58d59fa90664056d1cf0)

src/plugins/http/http.c

index c7e61c3..bfdaf70 100644 (file)
@@ -2575,7 +2575,10 @@ http_app_tx_callback (void *session, transport_send_params_t *sp)
   if (hc->state == HTTP_CONN_STATE_APP_CLOSED)
     {
       if (!svm_fifo_max_dequeue_cons (as->tx_fifo))
-       http_disconnect_transport (hc);
+       {
+         session_transport_closed_notify (&hc->connection);
+         http_disconnect_transport (hc);
+       }
     }
 
   sent = max_burst_sz - sp->max_burst_size;