mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 12:58:00 +03:00
fix: segfault on bytes_read = -1
This commit is contained in:
@@ -80,7 +80,8 @@ void Server::readSocket(Client &client, int fd)
|
||||
else if (bytes_read == -1)
|
||||
{
|
||||
DBOUT << RED << "bytes_read -1" << ENDL;
|
||||
client.allRead = true;
|
||||
// client.allRead = true;
|
||||
client.done = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user