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
web-socket connection lost and cannot be terminated #3278
Comments
If only the info message is a concern, then the If you want to suggest turning info to debug message in this case, then over the time we can end up only with two log levels debug and print-always (or error), while the current design with many more log levels expect that info level can still be pretty verbose, but not as debug. Besides info messages, I don't see errors, so I am not sure what you mean with the remark in the title that cannot be terminated. It may take time to be removed from the internal list, clean up being done on timer. Or maybe you can elaborate more what is the exact problem: the info logs or something else behind that. |
Thanks, Daniel @miconda Rate of this info message to high and we do not have such an amount of WebRTC clients. I will try to collect additional info when the issue is reproduced.
|
Relevant commit e7bd157
I closed all connections using |
I attached to running process and get backtrache
|
and websocket print
|
For me, it looks like for some reason connection cannot be removed. Also according to GDB
|
I have cherry-picked commit e7bd157 into 5.6 branch and installed it on the server.
In the log, I found when the connection created
PCAP for TCP connection via port 60157 is attached. For me looks like the WebSocket TCP connection closed properly. |
I created this GDB script
Where I watch the process with 183996 is
Script output shows the webssocket
|
This happens because of race conditions with websocket state. I will create a pull request to break race conditions. |
Related commit pushed a while ago. |
Description
On server used WebRTC clients. Some time Kamailio start flooding messages like this
I have enabled debug logs and can see more detailed output.
On the server installed commit 1d03d9e
Troubleshooting
I do not know.
For me it looks random.
Reproduction
I do not know.
For me it looks random.
Debugging Data
not applicable
Log Messages
provided above
SIP Traffic
not applicable
Possible Solutions
not known
Additional Information
Kamailio Version
Used commit 1d03d9e
Operating System:
kernel
The text was updated successfully, but these errors were encountered: