summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2024-04-13 19:22:36 +0200
committerDirk Engling <erdgeist@erdgeist.org>2024-04-13 19:22:36 +0200
commit0e9cc66de223187ec7e5620d6d41ae60584a72c4 (patch)
treee74cdcb80e029d09f1d392dc34f59b9e12cc5eba
parent57f859728d789400de0cd04a13d3d22c2b27ba6f (diff)
Cancel chunked transfers on dead sockets, too
-rw-r--r--opentracker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opentracker.c b/opentracker.c
index b1fa87a..bcc0703 100644
--- a/opentracker.c
+++ b/opentracker.c
@@ -159,7 +159,7 @@ static void handle_dead( const int64 sock ) {
159 iob_reset( cookie->batch + i ); 159 iob_reset( cookie->batch + i );
160 free( cookie->batch ); 160 free( cookie->batch );
161 array_reset( &cookie->request ); 161 array_reset( &cookie->request );
162 if( cookie->flag & STRUCT_HTTP_FLAG_WAITINGFORTASK ) 162 if( cookie->flag & (STRUCT_HTTP_FLAG_WAITINGFORTASK | STRUCT_HTTP_FLAG_CHUNKED_IN_TRANSFER) )
163 mutex_workqueue_canceltask( sock ); 163 mutex_workqueue_canceltask( sock );
164 free( cookie ); 164 free( cookie );
165 } 165 }