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
Describe the bug
Every day my OpenSIPs instances get a few examples of calls failing due to an async HTTP request timing out. The error is as follows:
ERROR:rest_client:_resume_async_http_req: async GET timed out
I managed to get a capture of this taking place and can see OpenSIPs is reusing a connection for a few requests within a second and that the remote (HAProxy) is timing out of 250ms and resetting the connection. OpenSIPs is racing against this and occasionally this fails as shown in the screen capture:
You can see the session is FIN just 1/1000000s before the send operation.
To Reproduce
I'm not sure how to reproduce, perhaps you'd need a similar environment with the server keeping the connection alive for 250ms.
Expected behavior
OpenSIPs would ideally detect this scenario and retry immediately and silently, at present it seems to wait for the entire request timeout (configured as 5s) before async returns and complains.
Relevant System Logs
Here is the 5s timeout shown from xlog:
2024-12-19T07:59:49.746085+00:00 opensips[1159185]: NOTICE:INVITE[1] (NEW CALL)
2024-12-19T07:59:54.479360+00:00 opensips[1159185]: ERROR:rest_client:_resume_async_http_req: async GET timed out
2024-12-19T07:59:54.479870+00:00 opensips[1159185]: ERROR:INVITE[1] [ASYNC_RESUME] data transmission timeout - return 504.
I also have a PCAP if required.
OS/environment information
Almalinux 9
Additional context
I have the ability to tune the server timeouts etc if that would minimise/remove the issue however I am keen to hear if there is anything that can be done OpenSIPs side to address the issue at source.
The text was updated successfully, but these errors were encountered:
OpenSIPS version you are running
Describe the bug
Every day my OpenSIPs instances get a few examples of calls failing due to an async HTTP request timing out. The error is as follows:
I managed to get a capture of this taking place and can see OpenSIPs is reusing a connection for a few requests within a second and that the remote (HAProxy) is timing out of 250ms and resetting the connection. OpenSIPs is racing against this and occasionally this fails as shown in the screen capture:
You can see the session is FIN just 1/1000000s before the send operation.
To Reproduce
I'm not sure how to reproduce, perhaps you'd need a similar environment with the server keeping the connection alive for 250ms.
Expected behavior
OpenSIPs would ideally detect this scenario and retry immediately and silently, at present it seems to wait for the entire request timeout (configured as 5s) before async returns and complains.
Relevant System Logs
Here is the 5s timeout shown from xlog:
I also have a PCAP if required.
OS/environment information
Almalinux 9
Additional context
I have the ability to tune the server timeouts etc if that would minimise/remove the issue however I am keen to hear if there is anything that can be done OpenSIPs side to address the issue at source.
The text was updated successfully, but these errors were encountered: