Skip to content
Snippets Groups Projects
Commit 76c34660 authored by deuce's avatar deuce
Browse files

Lower header recv timeout log priority from error to warning... this is

how Radius appears to say goodbye.
parent f5fa5a32
No related branches found
No related tags found
No related merge requests found
...@@ -864,7 +864,7 @@ BinkP.prototype.recvFrame = function(timeout) ...@@ -864,7 +864,7 @@ BinkP.prototype.recvFrame = function(timeout)
switch(this.sock.poll(timeout)) { switch(this.sock.poll(timeout)) {
case 0: // Timeout case 0: // Timeout
if (timeout) { if (timeout) {
log(LOG_ERROR, "Timed out receiving packet header!"); log(LOG_WARNING, "Timed out receiving packet header!");
this.sock.close(); this.sock.close();
this.sock = undefined; this.sock = undefined;
return undefined; return undefined;
...@@ -882,7 +882,7 @@ BinkP.prototype.recvFrame = function(timeout) ...@@ -882,7 +882,7 @@ BinkP.prototype.recvFrame = function(timeout)
switch(this.sock.poll(timeout)) { switch(this.sock.poll(timeout)) {
case 0: // Timeout case 0: // Timeout
if (timeout) { if (timeout) {
log(LOG_ERROR, "Timed out receiving second byte of packet header!"); log(LOG_WARNING, "Timed out receiving second byte of packet header!");
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.
Finish editing this message first!
Please register or to comment