commit - 5a91d621009d6a0f3b8e5ff054aa6ae7e3195191
commit + 9f067a059d9f64c68a73a2f7fbf5308ee342fe2a
blob - 665edae72dbbb76cbfece09cd004e7749bc426ef
blob + 459d51d4e1765054735c97430939f4178e8df61f
--- doc/sample-ngircd.conf
+++ doc/sample-ngircd.conf
;ConnectIPv6 = yes
;ConnectIPv4 = yes
- # Maximum number of simultaneous connection the server is allowed
- # to accept (0: unlimited):
+ # Maximum number of simultaneous in- and outbound connections the
+ # server is allowed to accept (0: unlimited):
;MaxConnections = 0
# Maximum number of simultaneous connections from a single IP address
blob - cdf4a4256df61406bede865a7fd749194b8e284e
blob + 14baf2090b6f3ee6f05ebba8ef386306efaa9f8c
--- man/ngircd.conf.5.tmpl
+++ man/ngircd.conf.5.tmpl
Default: Yes.
.TP
\fBMaxConnections\fR
-Maximum number of simultaneous connection the server is allowed to accept
-(0: unlimited). Default: 0.
+Maximum number of simultaneous in- and outbound connections the server is
+allowed to accept (0: unlimited). Default: 0.
.TP
\fBMaxConnectionsIP\fR
Maximum number of simultaneous connections from a single IP address that
blob - 0b21d3a12b66e27fdfd392f20b235e19ba6a9d7d
blob + f0a97f9cdddec0437f883d7f0716c24f4d6b9286
--- src/ngircd/conn.c
+++ src/ngircd/conn.c
(void) irrelevant;
if (New_Connection( sock ) >= 0)
NumConnections++;
+ LogDebug("Total number of connections now %ld.", NumConnections);
}
return;
NumConnections++;
+ LogDebug("Total number of connections now %ld.", NumConnections);
io_event_setcb(My_Connections[fd].sock, cb_clientserver_ssl);
}
#endif
assert(NumConnections > 0);
if (NumConnections)
NumConnections--;
- LogDebug("Shutdown of connection %d completed", Idx );
+ LogDebug("Shutdown of connection %d completed, %ld connection%s left.",
+ Idx, NumConnections, NumConnections != 1 ? "s" : "");
} /* Conn_Close */
Conf_Server[Server].conn_id = NONE;
}
#endif
- LogDebug("Registered new connection %d on socket %d.",
- new_sock, My_Connections[new_sock].sock );
+ NumConnections++;
+ LogDebug("Registered new connection %d on socket %d (%ld in total).",
+ new_sock, My_Connections[new_sock].sock, NumConnections);
Conn_OPTION_ADD( &My_Connections[new_sock], CONN_ISCONNECTING );
} /* New_Server */