mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
a426fab700
commit
fc07538462
1 changed files with 2 additions and 3 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue