[OpenSIPS-Devel] [OpenSIPS/opensips] a2a8dc: rest_client: Repair poor timeout settings at start...

Liviu Chircu liviu at opensips.org
Sat Oct 27 08:00:39 EDT 2018


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: a2a8dc78d2a78676ce1f5b8c9b8f31ef27cb1906
      https://github.com/OpenSIPS/opensips/commit/a2a8dc78d2a78676ce1f5b8c9b8f31ef27cb1906
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-10-27 (Sat, 27 Oct 2018)

  Changed paths:
    M modules/rest_client/doc/rest_client_admin.xml
    M modules/rest_client/rest_client.c

  Log Message:
  -----------
  rest_client: Repair poor timeout settings at startup


  Commit: 10d9b42c2a702751781f2856f71aaca86bb70a79
      https://github.com/OpenSIPS/opensips/commit/10d9b42c2a702751781f2856f71aaca86bb70a79
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-10-27 (Sat, 27 Oct 2018)

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

  Log Message:
  -----------
  rest_client: Refactor duplicate code


  Commit: fe5e1b8da01ba0e5698e080c27726cf2abb74249
      https://github.com/OpenSIPS/opensips/commit/fe5e1b8da01ba0e5698e080c27726cf2abb74249
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-10-27 (Sat, 27 Oct 2018)

  Changed paths:
    M modules/rest_client/rest_client.c

  Log Message:
  -----------
  rest_client: Plug pkg leak on failed async transfers


  Commit: 04e2ef3d091bba7a237589be03f53f27deabf413
      https://github.com/OpenSIPS/opensips/commit/04e2ef3d091bba7a237589be03f53f27deabf413
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-10-27 (Sat, 27 Oct 2018)

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

  Log Message:
  -----------
  rest_client: Add new error return codes for all transfers

     1: success
    -1: connection refused
    -2: connection timeout (i.e. 'connection_timeout' was hit)
    -3: transfer timeout (i.e. 'curl_timeout' was hit)
    -10: internal error (i.e. "I hope OpenSIPS is still running")

This patch also includes additional fixes related to error handling:
    * fix undetected error conditions on "async-but-blocking" transfers
       (these transfers happen once you hit 'max_async_transfers')

    * fix a bunch of code paths where the rest_() functions return
       success despite not being able to set one or more output pvars

    * never abort(), regardless of what libcurl says


  Commit: 59da2616ada4457447a5f816b1620e59577fffad
      https://github.com/OpenSIPS/opensips/commit/59da2616ada4457447a5f816b1620e59577fffad
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-10-27 (Sat, 27 Oct 2018)

  Changed paths:
    M modules/rest_client/doc/rest_client_admin.xml

  Log Message:
  -----------
  rest_client: Update documentation


Compare: https://github.com/OpenSIPS/opensips/compare/8890a1e627c1...59da2616ada4
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the Devel mailing list