mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 08:31:43 +02:00
Close listening socket before stopping running connections
If sending the serverStopped event to currently active connections happens before actually closing the server socket, new connections will be accepted in between, which in turn will stay open and prevent the HTTP server from stopping completely.
This commit is contained in:
@@ -70,8 +70,8 @@ HTTPServer::~HTTPServer()
|
||||
|
||||
void HTTPServer::stopAll(bool abortCurrent)
|
||||
{
|
||||
_pFactory->serverStopped(this, abortCurrent);
|
||||
stop();
|
||||
_pFactory->serverStopped(this, abortCurrent);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user