It's not enough to set the SelectionKey flag OP_WRITE to false when we have just done a write and we don't have anymore to do, we also have to reset the IoSession registeredForWrite flag to false, otherwise we enter into a deadlock.


git-svn-id: https://svn.apache.org/repos/asf/mina/mina/trunk@1428733 13f79535-47bb-0310-9956-ffa450edef68