]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
FS-7731 mod_xml_cdr: url_index global pointer concurrent access fix, curl default...
authorAnton Lozovsky <aloz@ukr.net>
Thu, 16 Jul 2015 16:18:24 +0000 (19:18 +0300)
committerAnton Lozovsky <aloz@ukr.net>
Thu, 16 Jul 2015 16:18:24 +0000 (19:18 +0300)
commit8068c4e11c8efb0b331eef1590a20415441dad1f
tree0949e3ff34cb363491c7e878df2200c13eeef83e
parent928f97350001aca7c5a99ad876440ee8e307fa42
FS-7731 mod_xml_cdr: url_index global pointer concurrent access fix, curl default connection timeout fix

- thread variable copy of url_index global pointer to prevent the concurrent access having wrong state change if the posting to the current http server was unsuccessfull;
- overriding the default curl connection timeout

Based on need to figure out the smallest block of code need to mutex, and that libcurl (and its wrapper) is definitely thread safe.
src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c