You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A worker that runs every second and fetches data from the inverter with Modbus/TCP. I only initialize a connection one time.
A SellProgrammer that is initialized every hour. I call programmer.disconnect()after each update.
The problem
In the start this works, but after some time (over 24 hrs) I start to get socket.timeout. As the time goes by the amount of timeouts increases until it suddenly throws: Socket closed. When I stop the service and start it again it however throws: Connection closed.
Has anyone experienced issues like this before?
Other questions:
Should I disconnect more often when reading?
Should I store the socket to ensure I use the same one each time?
The text was updated successfully, but these errors were encountered:
Background
I have two Python programs that runs on a RPi:
programmer.disconnect()
after each update.The problem
In the start this works, but after some time (over 24 hrs) I start to get
socket.timeout
. As the time goes by the amount of timeouts increases until it suddenly throws:Socket closed
. When I stop the service and start it again it however throws:Connection closed
.Other questions:
The text was updated successfully, but these errors were encountered: