This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread 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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
 
subject: NIO NIO NIO
 
Similar Threads
Creating a nonblocking stream
nio selector
SocketChannel and OutputStream
Is it possible to read data after nio socket channel closed?
does a nio socket buffer data internally too?