GitHub user gpapama edited a comment on the discussion: S7 connection reset blocks thread indefinitely
I am reading tags every 1 second from multiple PLCs, that is why i chose to initialize the connections at the start and keep them open, so that i do not have the overhead of creating a new connection while the read is executed. I also implemented my own retry strategy which takes place every 10s using connection.isConnected() to identify and close problematic connections and create new. However, i only encounter above problem at a specific PLC which throws SocketException during connection. Shouldn't this exception propagate to a PlcConnectionException when trying to connect? If i am correct the ConnectionCache uses a wait time to invalidate the connection, so maybe i can implement a time limit logic during connection tries in order to tackle this issue. GitHub link: https://github.com/apache/plc4x/discussions/1775#discussioncomment-10701829 ---- This is an automatically sent email for dev@plc4x.apache.org. To unsubscribe, please send an email to: dev-unsubscr...@plc4x.apache.org