Remove socket fd from map after closing it
This commit is contained in:
@@ -44,6 +44,7 @@ void HttpServer::HandleEpollOutEvent(int fd)
|
|||||||
|
|
||||||
Socket::WriteBytes(fd, result->second);
|
Socket::WriteBytes(fd, result->second);
|
||||||
close(fd);
|
close(fd);
|
||||||
|
socketWriteMap.erase(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
void HttpServer::Execute()
|
void HttpServer::Execute()
|
||||||
|
|||||||
Reference in New Issue
Block a user