Message11375

Author psterdale
Recipients psterdale
Date 2017-05-17.11:57:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1495022229.17.0.698481268526.issue2592@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-05-17 11:57:09psterdalesetmessageid: <1495022229.17.0.698481268526.issue2592@psf.upfronthosting.co.za>
2017-05-17 11:57:09psterdalesetrecipients: + psterdale
2017-05-17 11:57:09psterdalelinkissue2592 messages
2017-05-17 11:57:08psterdalecreate