removed debug output

This commit is contained in:
overflowerror 2019-03-07 22:00:46 +01:00
parent 7c193caa97
commit 253c2153bd

View file

@ -391,8 +391,6 @@ void dataHandler(int signo) {
break;
}
debug("networking: header: %s", connection->currentHeader);
// \r is in the buffer
connection->currentHeaderLength--;
connection->currentHeader[connection->currentHeaderLength] = '\0';
@ -535,6 +533,10 @@ void* listenThread(void* _bind) {
close(tmp);
continue;
}
if (setsockopt(tmp, SOL_SOCKET, SO_REUSEPORT, &(int){ 1 }, sizeof(int)) < 0) {
close(tmp);
continue;
}
bindObj->_private.socketFd = tmp;