mirror of
https://github.com/sigmasternchen/CFloor
synced 2025-03-15 20:28:56 +00:00
some debug code
This commit is contained in:
parent
fd3e96c884
commit
0bfae41a10
2 changed files with 10 additions and 0 deletions
|
@ -512,6 +512,10 @@ void dataHandler(int signo) {
|
||||||
}
|
}
|
||||||
} else if (tmp == 0) {
|
} else if (tmp == 0) {
|
||||||
error("networking: connection ended");
|
error("networking: connection ended");
|
||||||
|
|
||||||
|
buffer[length] = '\0';
|
||||||
|
|
||||||
|
debug("networking: buffer: '%d'", buffer);
|
||||||
dropConnection = true;
|
dropConnection = true;
|
||||||
}
|
}
|
||||||
if (length > 0) {
|
if (length > 0) {
|
||||||
|
|
|
@ -51,6 +51,9 @@ void* copyFromSslToFd(void* data) {
|
||||||
write(connection->_readfd, &b, 1);
|
write(connection->_readfd, &b, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
debug("ssl: read thread finished");
|
||||||
|
debug("ssl: closing read pipe");
|
||||||
|
|
||||||
close(connection->_readfd);
|
close(connection->_readfd);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -64,6 +67,8 @@ void* copyFromFdToSsl(void* data) {
|
||||||
SSL_write(connection->instance, &b, 1);
|
SSL_write(connection->instance, &b, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
debug("ssl: write thread finished");
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -135,6 +140,7 @@ struct ssl_connection* ssl_initConnection(struct ssl_settings* settings, int soc
|
||||||
|
|
||||||
|
|
||||||
void ssl_closeConnection(struct ssl_connection* connection) {
|
void ssl_closeConnection(struct ssl_connection* connection) {
|
||||||
|
info("ssl: closing connection");
|
||||||
close(connection->writefd);
|
close(connection->writefd);
|
||||||
close(connection->readfd);
|
close(connection->readfd);
|
||||||
close(connection->_writefd);
|
close(connection->_writefd);
|
||||||
|
|
Loading…
Reference in a new issue