• Post Reply Bookmark Topic Watch Topic
  • New Topic

NIO NIO NIO  RSS feed

 
Patrick Brahami
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!