mirror of
git://erdgeist.org/opentracker
synced 2025-01-13 08:20:06 +00:00
Cancel chunked transfers on dead sockets, too
This commit is contained in:
parent
57f859728d
commit
0e9cc66de2
@ -159,7 +159,7 @@ static void handle_dead( const int64 sock ) {
|
|||||||
iob_reset( cookie->batch + i );
|
iob_reset( cookie->batch + i );
|
||||||
free( cookie->batch );
|
free( cookie->batch );
|
||||||
array_reset( &cookie->request );
|
array_reset( &cookie->request );
|
||||||
if( cookie->flag & STRUCT_HTTP_FLAG_WAITINGFORTASK )
|
if( cookie->flag & (STRUCT_HTTP_FLAG_WAITINGFORTASK | STRUCT_HTTP_FLAG_CHUNKED_IN_TRANSFER) )
|
||||||
mutex_workqueue_canceltask( sock );
|
mutex_workqueue_canceltask( sock );
|
||||||
free( cookie );
|
free( cookie );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user