[OpenSIPS-Devel] [OpenSIPS/opensips] ec96e8: rest_client: Improve async() handling in "delayed ...

Liviu Chircu noreply at github.com
Mon Mar 6 20:15:28 UTC 2023

  Branch: refs/heads/3.3
  Home:   https://github.com/OpenSIPS/opensips
  Commit: ec96e8e1a89200fdba630a5849c40f478b4806e7
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2023-03-06 (Mon, 06 Mar 2023)

  Changed paths:
    M modules/rest_client/rest_client.c
    M modules/rest_client/rest_methods.c

  Log Message:
  rest_client: Improve async() handling in "delayed 200 OK" scenarios

In case the 200 OK reply or its body take several seconds to arrive, do
not break the loop prematurely due to a 500ms hardcoded loop timeout and
re-use the configurable "curl_timeout" modparam as loop timeout instead.

(cherry picked from commit 532d8e83726f96f8e8d2c493a1e7cb0f54615869)

More information about the Devel mailing list