This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NIO NIO NIO