Sign in to follow this  

[java] More NIO headaches

This topic is 4339 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

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

This topic is 4339 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this