• Advertisement
Sign in to follow this  

[java] More NIO headaches

This topic is 4412 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
You know, the prefered method is to leave the original post and then post what the solution was. That way might help other people in the future...

Share this post


Link to post
Share on other sites
Ok. Here's the gist of what I posted.

Basically I wanted to know why the Selector was getting bombarded with read events when a client disconnected. Then I RTFM and realised that it's supposed to happen and SocketChannel.read() returns -1 upon disconnection. If I left this post here, I would have probably been told to RTFM. At least that's what I've seen in other forums. Maybe GD.net is friendlier though...

Sorry to deprive you of my trivial problem/solution. As you can see I've got other problems/solutions floating around here that are much more interesting. I'd rather not clutter the forum with trivial things. Like I said, I tried to delete it almost straight away, but it didn't work.

*** Perhaps the moderator could delete this entire thread as it's getting a bit off-topic. ***

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement