• Dave Cridland's avatar
    Do not synchronize on isClosed() · 389c17c7
    Dave Cridland authored
    There is a deadlock while reading the state variable if close() is running.
    
    This switches the state to be volatile instead - it's only written to inside
    the lengthy close() lock, so this should be reasonable.
    389c17c7
NIOConnection.java 18.3 KB