Merge commit from fork

Cap `Content-Length` at `HTTP_POST_MAX_BODY` (10 MiB) and size the
allocation to the actual body length (`content_length + 1` for
the trailing NUL).

Also fix `WS_BLOCK` units — `kws_raw_read` takes ms, set to 10000.
This commit is contained in:
Dmitry Verenitsin authored and GitHub committed 2026-05-26 22:02:42 +03:00
1 parent e3dc9950fd
commit 33ee3663bb
5 files changed
+405 -4

No files matched your search

+47
View File
@@ -0,0 +1,47 @@
<?xml version="1.0"?>
<document type="freeswitch/xml">
<X-PRE-PROCESS cmd="set" data="local_ip_v4=127.0.0.1"/>
<X-PRE-PROCESS cmd="set" data="domain=127.0.0.1"/>
<section name="configuration" description="Configuration">
<configuration name="modules.conf" description="Modules">
<modules>
<load module="mod_console"/>
<load module="mod_loopback"/>
<load module="mod_dptools"/>
<load module="mod_dialplan_xml"/>
<load module="mod_sndfile"/>
<load module="mod_verto"/>
</modules>
</configuration>
<configuration name="switch.conf" description="Core Configuration">
<settings>
<param name="colorize-console" value="false"/>
<param name="loglevel" value="debug"/>
<param name="rtp-start-port" value="16384"/>
<param name="rtp-end-port" value="16484"/>
</settings>
</configuration>
<configuration name="console.conf" description="Console Logger">
<mappings>
<map name="all" value="console,debug,info,notice,warning,err,crit,alert"/>
</mappings>
<settings>
<param name="colorize" value="false"/>
<param name="loglevel" value="debug"/>
</settings>
</configuration>
<configuration name="timezones.conf" description="Timezones">
<timezones>
<zone name="GMT" value="GMT0"/>
</timezones>
</configuration>
<X-PRE-PROCESS cmd="include" data="verto.conf.xml"/>
</section>
</document>