http: confirm postponed connection close 08/42308/2
authorMatus Fabian <[email protected]>
Tue, 4 Feb 2025 13:41:55 +0000 (08:41 -0500)
committerFlorin Coras <[email protected]>
Wed, 5 Feb 2025 23:30:41 +0000 (23:30 +0000)
Type: fix

Change-Id: I43a221ac2be9bbea885116c12d1991cf4477fae8
Signed-off-by: Matus Fabian <[email protected]>
src/plugins/http/http.c

index faead70..04a4ad3 100644 (file)
@@ -2613,7 +2613,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;