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

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

  Branch: refs/heads/3.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 89080a3ea8696f6dfde633d13083a0917f15feb2
  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