shekhartanwar commented on issue #2246: URL: https://github.com/apache/plc4x/issues/2246#issuecomment-3257771917
> Well ... does it generally work, or are you just seeing that in the logs and generally everything is working? In general S7 devices are some times a little "bitchy" ... if they don't like something, they just hang up. So some times a bit might flip or the S7 thinks one flipped and it just hangs up .... especially under heavy network loads, I've seen that happen. > > Are you using the connection cache or are you opening a connection for every request? I hope you're using the connection-cache, as that should handle the reconnects and also improve performance quite a bit. I am creating only 1 instance of PlcConnection and using it in all read/write requests, i have created a getConnection() method that whenever called checks if plcConnection.isConnected() then accordingly reconnects if not connected. But at the end, the connection object is Singleton. This connection stays open till it's automatically disconnected. As fas as i understood, for using Connection Cache, i have to close connection every time so that all other threads can use it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
