[OpenSIPS-Devel] [OpenSIPS/opensips] fc88b2: rest_client: Fix async rest_get() stalling with lo...

Liviu Chircu noreply at github.com
Mon Apr 26 10:50:01 EST 2021


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: fc88b2c99238c85c53fabf363b5ba1393d54c10d
      https://github.com/OpenSIPS/opensips/commit/fc88b2c99238c85c53fabf363b5ba1393d54c10d
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2021-04-26 (Mon, 26 Apr 2021)

  Changed paths:
    M modules/rest_client/rest_methods.c

  Log Message:
  -----------
  rest_client: Fix async rest_get() stalling with local web server

Similar issue to #2483, where the async GET operation would stall
indefinitely, due to curl_multi_perform() not being called multiple
times during the single invocation of the "resume" callback.

In this case, the issue was caused by a misplaced "enable_expect_100"
check.  Not using the "Expect: 100" feature doesn't mean that
curl_multi_perform() should be called at most once.

Using libcurl 7.68





More information about the Devel mailing list