We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bf936c3 + 0594075 commit aae394bCopy full SHA for aae394b
1 file changed
src/core/server.cpp
@@ -104,6 +104,11 @@ void expresso::core::Server::handleConnection(int clientSocket) {
104
105
charRequest.resize(totalBytesRead);
106
std::string request(charRequest.data());
107
+ if (totalBytesRead == 0 || request.empty()) {
108
+ close(clientSocket);
109
+ return;
110
+ }
111
+
112
expresso::messages::Response *res =
113
new expresso::messages::Response(clientSocket);
114
0 commit comments