You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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:
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
The text was updated successfully, but these errors were encountered: