Made sockets nonblocking (I'm a fool who didn't do this and spent several hours trying to figure out why I couldn't handle a second request if firefox was on the page I'm so dumb I hate myself I hate coding I hate the internet computers were a mistake)
This commit is contained in:
@@ -142,6 +142,7 @@ int sendResponse(Connection *conn, Sitefile *site) {
|
||||
readResponse(conn, site->content[i].arg);
|
||||
goto end;
|
||||
default:
|
||||
sendErrorResponse(conn, ERROR_500);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user