Page 1 of 1

Network Server Disconnect Errors

Posted: Thu Jul 23, 2020 8:49 am
by AdamLee
Hey everyone!

Just recently I've been getting these errors and noticing that my Phidgets are sporadically disconnecting in the system:

Code: Select all

2020-07-23T13:18:24  <Info> phidget22net[serverAuthenticateClient()] : www,nodejs://127.0.0.1:61910 authenticated
2020-07-23T13:19:43 <ERROR> phidget22net[checkKeepAlive()] : www,nodejs://127.0.0.1:61910: keepalive [4000000 usec] timeout [71801139741 usec < 71801139955 usec]
2020-07-23T13:19:43 <ERROR> phidget22net[runClientConnection()] : 'a9ee731-815' failed for client www,nodejs://127.0.0.1:61910
        server.c+658 handleDeviceClient() : (Timed Out) failed to handle client request
2020-07-23T13:19:43  <Info> phidget22net[runClientConnection()] : www,nodejs://127.0.0.1:61910 disconnected
I also noticed that there was a updated network server pushed on July 9th. Right now I'm running this in a container that pulls the most recent version of the network server so my guess is that it's from the most recent update but I wanted to post here to see if anyone else has run into this issue. I'm going to try rolling back to the April 17th version to see if it makes a difference, and also from here on out I'm going to target specific versions instead of grabbing the latest.

Re: Network Server Disconnect Errors

Posted: Thu Jul 23, 2020 2:11 pm
by Patrick
Hi,

The network server hasn't changed in while. Does the keepalive failure happen in a predictable way? It looks like your client and server are on the same machine, so it should be a networking issue. Maybe debugging your Node app? Maybe busy machine? I need to write an article about keepalives.

-Patrick