-
-
Notifications
You must be signed in to change notification settings - Fork 15.9k
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
Connection stay in CLOSE_WAIT #4932
Comments
Did you call |
I did this code :
|
@wahisoufiane how have you configured your IdleStateHandler? |
of course I did it, I add in my pipeline : and also, in the last pipe, I add a class who extends from |
Hi again, I did a Log in netty to find out why it didn't close connection, and I found that timeout call |
Not sure I understand correctly. Can you give more details? |
and the log I get is:
knowing that the timeout I give is 60 second, and after that log I have CLOSE_WAIT status, till i stop my app. but in the normal case I have:
|
I went little deeper in the code, and found something that helped me but not sure that is the best solution, or if it would generate some problems somewhere. I changed the AbstractNioChannelSink.execute(Runnable task) function from:
To:
Like it is not override, so it will execute the channelIdle immediatly. I don't know why the IOThread is full and get the channelIdle thread waiting for some other things to be done, and didn't know what this things could be. Another thing I found is that in the newer version of Netty, you don't create a thread in the IdleStateHandler on timeout, you call immediatly the channelIdle instead. Was that creating thread before created you a problem like in my case, that is why you change it now? |
Netty 3 is EOL. Please upgrade to 4.x |
Hi,
I'm using netty 3.10.1, to communicate with devices (GPS), and in a certain time, connection are not closed (netty didn't call close connection) and leave CLOSE_WAIT status. Here is a wireshark capture for a case of it:
As you can see, the server didn't send FIN to device.
The text was updated successfully, but these errors were encountered: