Hello,
set_reply_close() is very minimal wrapper action from the core setting an internal flag. It can be merged with a reply function, but maybe it should be a new function a little bit more generic, like send_reply_mode(code, reason, mode) where mode is a parameter that can be used for other purposes in the future (by using bit-based flags).
Cheers, Daniel
On 03.11.20 07:42, Juha Heinanen wrote:
Many times (especially when there is a hacking attempt) I want to close TCP or TLS session after sending reply. So, for example, I write:
set_reply_close(); send_reply("403", "Forbidden");
It would be more convenient if these two calls could be combined into one, for example:
send_reply_and_close("403", "Forbidden");
-- Juha
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users