Lua API call delays the packet sending out
VERMA Vineet (BCS/SPS)
vineet.verma at bics.com
Mon Apr 19 11:00:44 UTC 2021
Dears,
I am facing the issue that when REST API triggers the freeswitch I am sending the reply with
Following code:
stream:write("HTTP/1.1 200 OK\r\n")
if (accept == "application/json" or accept == "*/*") then
stream:write("Content-Type: application/json\r\n")
else
stream:write("Content-Type: text/plain\r\n")
end
stream:write("\r\n")
but it seems before packet it out , there is as deplay of 2-3 sec .
can you please suggest how to solve this?
I already tried
stream:shutdown();
and
stream:close()
but did not helped.
Thanks & Regards
Vineet Verma
This e-mail cannot be used for other purposes than BICS business use.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20210419/f61c33bd/attachment.html>
More information about the FreeSWITCH-users
mailing list