fix issue with HTTP socket wasn't freed at the end of request-response cycle

Connection closing by client demand doesn't work but
   it isn't important for purposes of testing so commented out
This commit is contained in:
Sergei Golovin 2024-03-06 14:16:44 +04:00
parent a426fab700
commit fc07538462

View file

@ -233,16 +233,15 @@
// ready for another request-response cycle
[self _resetCycle]; // <- the _request and _response are deallocated
if (_isClose)
/*if (_isClose)
{
// if the client didn't supply the header 'Connection' or explicitly stated
// to close the current connection
//[_cfh readInBackgroundAndNotify];
[self _close];
return;
// BEWARE: it can left the socket busy for HTTP after server stopping (for HTTPS is OK)
// so consequent tests are failed bc their server can't bind
}
} */
}
[_cfh readInBackgroundAndNotify];
}