Skip to content
Snippets Groups Projects
Commit 93c9d7e0 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Log the error on first-byte recv() timeout.

parent 65c4e767
Branches
Tags
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -1058,7 +1058,7 @@ BinkP.prototype.recvFrame = function(timeout) ...@@ -1058,7 +1058,7 @@ BinkP.prototype.recvFrame = function(timeout)
ret = new this.Frame(); ret = new this.Frame();
i = this.sock.recv(1, timeout); i = this.sock.recv(1, timeout);
if (i === null) { if (i === null) {
log(LOG_INFO, "Error in recv() of first byte of packet header, timeout = " + timeout); log(LOG_INFO, "Error "+this.sock.error+" ("+this.sock.error_str+") in recv() of first byte of packet header, timeout = " + timeout);
this.sock.close(); this.sock.close();
this.sock = undefined; this.sock = undefined;
return undefined; return undefined;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment