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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
Similar Threads
does a nio socket buffer data internally too?
nio selector
Creating a nonblocking stream
SocketChannel and OutputStream
Is it possible to read data after nio socket channel closed?