-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libplctag never stops after disconnect / reconnect (AB CLX) #450
Comments
Interesting. Thanks for the report. The third thread appears to be the thread for the PLC connection. It should have been set to terminate, but it looks like the timing/coordination is not working right. This might take me some time to debug. I am going to mark this as a bug for now. Thanks again! |
I just added an ab_session_terminating flag which will be set in session_teardown and ends all remaining THREAD_FUNCs with additionally destroying the session. Now plctag_shutdown never hangs... |
If i interrupt my connection to the plc (disconnect / reconnect) libplctag never returns from plc_tag_shutdown
Attached two logs, first without interruption, second with interruption:
plc_tag_shutdown when connection was not interrupted:
plc_tag_shutdown when connection was interrupted / disconnected and reconnected:
Now there is a thread(3) ...
The text was updated successfully, but these errors were encountered: