aspose file tools*
The moose likes I/O and Streams and the fly likes NIO NIO NIO Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "NIO NIO NIO" Watch "NIO NIO NIO" New topic
Author

NIO NIO NIO

Patrick Brahami
Ranch Hand

Joined: Oct 12, 2008
Posts: 32
Hey, I'm doing several networking tests with NIO and I have the following issue:

I'm trying to send bytes with a gathering write ( write of bytebuffer array) and I see that my client sends alot of bytes but my client reads much less.
Its like the Selector is not fast enough, and it misses some of the selecting.
Anyone had any similar issues?

I'm using continuation write, if my write fails I set OP_WRITE to true and wait for the Selector to select a writeable key.

Thanks in advance.
 
 
subject: NIO NIO NIO