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

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

parent 8baf9dda
No related branches found
No related tags found
No related merge requests found
......@@ -1058,7 +1058,7 @@ BinkP.prototype.recvFrame = function(timeout)
ret = new this.Frame();
i = this.sock.recv(1, timeout);
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 = undefined;
return undefined;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment