Added more logging
This commit is contained in:
@@ -75,6 +75,12 @@ remove:
|
|||||||
|
|
||||||
if (fds[0].revents & POLLIN) {
|
if (fds[0].revents & POLLIN) {
|
||||||
Stream *newstream;
|
Stream *newstream;
|
||||||
|
{
|
||||||
|
char log[200];
|
||||||
|
sprintf(log,
|
||||||
|
"Thread %d received a connection (it now has %d connections)",
|
||||||
|
id, connCount);
|
||||||
|
}
|
||||||
if (connCount >= allocConns) {
|
if (connCount >= allocConns) {
|
||||||
struct pollfd *newfds;
|
struct pollfd *newfds;
|
||||||
Connection *newconns;
|
Connection *newconns;
|
||||||
|
|||||||
Reference in New Issue
Block a user