mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 21:07:59 +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)
|
else if (bytes_read == -1)
|
||||||
{
|
{
|
||||||
DBOUT << RED << "bytes_read -1" << ENDL;
|
DBOUT << RED << "bytes_read -1" << ENDL;
|
||||||
client.allRead = true;
|
// client.allRead = true;
|
||||||
|
client.done = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user