Message11375
I have added below lines of code to create_connection() function in _socket.py
if NIO_GROUP.isShutdown():
log.debug("Theard pool is shutdown. Recreating...")
global NIO_GROUP
NIO_GROUP = NioEventLoopGroup(_NUM_THREADS, DaemonThreadFactory("Jython-Netty-Client-%s"))
sys.registerCloser(_shutdown_threadpool)
Please suggest if there is any better way to handle this...
PFA sample java code and script to reproduce the issue.
Also logs from _socket.py before and after fix. |
|
Date |
User |
Action |
Args |
2017-05-17 11:57:09 | psterdale | set | messageid: <1495022229.17.0.698481268526.issue2592@psf.upfronthosting.co.za> |
2017-05-17 11:57:09 | psterdale | set | recipients:
+ psterdale |
2017-05-17 11:57:09 | psterdale | link | issue2592 messages |
2017-05-17 11:57:08 | psterdale | create | |
|