You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@plc4x.apache.org by "Sebastian Voss (Jira)" <ji...@apache.org> on 2020/09/09 18:50:00 UTC

[jira] [Created] (PLC4X-249) Pending threads after connection.close

Sebastian Voss created PLC4X-249:
------------------------------------

             Summary: Pending threads after connection.close
                 Key: PLC4X-249
                 URL: https://issues.apache.org/jira/browse/PLC4X-249
             Project: Apache PLC4X
          Issue Type: Bug
          Components: Driver-S7
    Affects Versions: 0.7.0, 0.8.0
            Reporter: Sebastian Voss
         Attachments: thread_dump.txt

I’m facing some issue when I try to quit my application. It seems connection.close() is not stopping all pending threads. Is this a known issue or am I doing something wrong?


{code:java}
String url = "s7://...";
PlcDriverManager manager = new PlcDriverManager();
PlcConnection connection = manager.getConnection(url);
connection.close();
System.out.println("closed”);  // gets printed but hangs afterwards{code}
I created a thread dump which is attached.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)