Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another java.util.concurrent.TimeoutException problem analysis #110

Open
vongosling opened this issue Feb 20, 2014 · 0 comments
Open

Another java.util.concurrent.TimeoutException problem analysis #110

vongosling opened this issue Feb 20, 2014 · 0 comments

Comments

@vongosling
Copy link

We implements SocketIo server using netty, but make some minor difference with socketIO sepc.That's in one step, after returning http connection result,I closed this socket using ChannelFutureListener intendedly.so when I using AndroidAysnc lib,I got TimeoutException, through debug code ,I found in AysncSocketMiddleware's recycleSocket method:

       sockets.add(socket);

this line is not working well in my situation,and I could not get SocketException, in my socket programming experience,usually i will using "socket.sendUrgentData(0xFF)" to verify one socket is really available(If not,throw SocketException).so the problem occurs in the socket reusing situation,the solution is also obvious:Verify socket is available before writing some data .meanwhile, let's customer know server closed socket actively

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant