There's no getter methods to find out how many write requests are written and are to be written. Let's add getWrittenWriteRequests() and getScheduledWriteRequests() to IoSession and ProtocolSession.
Description
There's no getter methods to find out how many write requests are written and are to be written. Let's add getWrittenWriteRequests() and getScheduledWriteRequests() to IoSession and ProtocolSession.
* Fix for DIRMINA-67: added getWrittenWriteRequests() and getScheduledWriteRequests()
* Fixed ByteBuffer autoExpand mode doesn't initialize new buffer properly while expanding.