Open kertor opened 3 months ago
Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.
UP
Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.
Marking as closed due to lack of progress for more than 30 days. If this issue is still relevant, please re-open it with additional details.
up
Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.
Up
Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.
OpenSIPS version you are running
Describe the bug
HTTPD lib on OpenSIPS do not work properly in case, when it receive fragmented HTTP request.
My HTTPD module settings:
When i use system command curl, like:
then all works like a charm (OpenSIPS quickly return response), because OpenSIPS receive not fragmented HTTP packet:
But, if i use opensips-cli , then i have incorrect behavior: opensips-cli just stuck, because there is no response from OpenSIPS. Please look at this screenshot:
As you can see, python3 lib (which use opensips-cli ) send json content in separate packet ("2 reassembled TCP Segments"). When OpenSIPS receive it, it stucks and can not return response.
To Reproduce
Explained above - on my system these libs installed:
To avoid this problem with slow OpenSIPS response, in our Python3 scripts we use this fix to avoid HTTP packets splitting:
Expected behavior
OpenSIPS can process: 1) not fragmented HTTP packets; 2) fragmented HTTP packets.
Relevant System Logs
OS/environment information
Additional context