Skip to content

Commit b229f51

Browse files
authored
Merge pull request #93 from coding-cpp/fix/69
closing client socket always
2 parents 19203bc + 89c3788 commit b229f51

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/server.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ void expresso::core::Server::handleConnection(int clientSocket) {
118118
res->status(expresso::enums::STATUS_CODE::BAD_REQUEST).send("Bad Request");
119119
}
120120

121+
close(clientSocket);
121122
return;
122123
}
123124

0 commit comments

Comments
 (0)