[OpenSIPS-Devel] [OpenSIPS/opensips] 4286bb: rest_client: initialize cURL library in mod_init()

Răzvan Crainea noreply at github.com
Thu Nov 21 04:07:44 EST 2019


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 4286bb57f671afd0002fcb5c345da55946f647bd
      https://github.com/OpenSIPS/opensips/commit/4286bb57f671afd0002fcb5c345da55946f647bd
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2019-11-21 (Thu, 21 Nov 2019)

  Changed paths:
    M modules/rest_client/rest_client.c

  Log Message:
  -----------
  rest_client: initialize cURL library in mod_init()

This fix prevents crashes generated by rest_client trying to initialize
the SSL library from multiple processes in parallel, without any locking
mechanism on the internal shared objects.

Many thanks to Clif Jones and Ben Newlin for reporting and providing
plentora of logs and configurations that replicate this issue. Without
their help I couldn't have figured this out.

Close #1771





More information about the Devel mailing list