[
https://issues.apache.org/jira/browse/PLC4X-172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jens Vagts updated PLC4X-172:
-----------------------------
Affects Version/s: 0.5.0
> ADS driver does not shutdown all threads (hangs) after closing connection
> -------------------------------------------------------------------------
>
> Key: PLC4X-172
> URL: https://issues.apache.org/jira/browse/PLC4X-172
> Project: Apache PLC4X
> Issue Type: Bug
> Components: Driver-ADS
> Affects Versions: 0.5.0, 0.6.0, 0.7.0
> Environment: Windows 10
> OpenJDK 11
> Eclipse 2019-12
> Remote PLC running TwinCat 2
> Reporter: Jens Vagts
> Priority: Major
> Attachments: Plc4xAdsTestInitial.java,
> image-2020-02-04-11-58-40-364.png, trace.log
>
>
> I'm starting to use the ADS protocol support of the PLC4X project. I
> succeeded to read out single values but always struggle with a hanging
> application process due to remaning threads of {{nioEventLoopGroup}} and
> {{pool-1:}}
> !image-2020-02-04-11-58-40-364.png!
> Attached are the simple java test method and the trace log.
> I built the library version {{0.7.0-SNAPSHOT}} from source.
> After 30 seconds warnings get logged regarding timeouts but the thread keep
> running:
> {noformat}
> 11:52:03.492 [pool-1-thread-1] WARN
> o.a.p.j.b.p.SingleItemToSingleRequestProtocol - container
> PlcRequestContainer{request=org.apache.plc4x.java.base.messages.DefaultPlcProprietaryRequest@c1b47e3}
> timed out:HashedWheelTimer$HashedWheelTimeout(deadline: 101966500 ns ago,
> task:
> org.apache.plc4x.java.base.protocol.SingleItemToSingleRequestProtocol$$Lambda$99/0x0000000800237440@353dfda9)
> 11:52:08.791 [pool-1-thread-1] WARN
> o.a.p.j.b.p.SingleItemToSingleRequestProtocol - container
> PlcRequestContainer{request=org.apache.plc4x.java.base.messages.DefaultPlcProprietaryRequest@3220d517}
> timed out:HashedWheelTimer$HashedWheelTimeout(deadline: 9469900 ns ago,
> task:
> org.apache.plc4x.java.base.protocol.SingleItemToSingleRequestProtocol$$Lambda$99/0x0000000800237440@3fc596d9)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)