org.jpos.iso.ISOServer
Executor.awaitTermination(LONG_RELAX, TimeUnit.SECONDS) in shutdownServer() will not succeed until a timeout occurs.
It is trying to wait for its own thread to finish. The executor submits a task, and the task waits for the executor to complete all tasks, resulting in a deadlock. Only after the LONG_RELAX timeout may the code continue to shut down channels.
And LONG_RELAX is 5000 seconds, which is too long before the channels can be shut down.
The suggestion fix is to remove awaitTermination, or to break the shutdown server and shutdown channel into two threads, with only the first completing before the second is called.
Issue created: #631 Please advise.
--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jpos-users/3be61429-c952-4848-8358-ac4c95978030n%40googlegroups.com.