Skip to content
Snippets Groups Projects
Commit d5fcf032 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Log the socket descriptor that's being closed *before* calling Socket.close()

Socket.close() always sets the descriptor to -1 which is/would be logged here
as an unsigned int (%u) or 4294967295.

If this continues to log 4294967295, then a check of descriptor >= 0 would be
prudent.

And as Cyan said:
<Cyan> the IP would be more useful though
parent 2c9771f2
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -315,11 +315,11 @@ function Unregistered_Quit(msg) { ...@@ -315,11 +315,11 @@ function Unregistered_Quit(msg) {
else else
log(LOG_INFO, format('[UNREG] QUIT ("%s")', msg)); log(LOG_INFO, format('[UNREG] QUIT ("%s")', msg));
this.socket.clearOn("read", this.socket.callback_id); this.socket.clearOn("read", this.socket.callback_id);
this.socket.close();
log(LOG_NOTICE,format( log(LOG_NOTICE,format(
"%04u Connection closed.", "%04u Connection closed.",
this.socket.descriptor this.socket.descriptor
)); ));
this.socket.close();
if ( typeof this.cline === 'object' if ( typeof this.cline === 'object'
&& YLines[this.ircclass].connfreq > 0 && YLines[this.ircclass].connfreq > 0
&& this.cline.port > 0 && this.cline.port > 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment