[OpenSIPS-Devel] [OpenSIPS/opensips] 0aad9e: cgrates: fix infinite re-connect issue
Răzvan Crainea
noreply at github.com
Mon Nov 14 16:48:47 UTC 2022
Branch: refs/heads/3.3
Home: https://github.com/OpenSIPS/opensips
Commit: 0aad9e5e6ea216df9345a0a349c0815df4630270
https://github.com/OpenSIPS/opensips/commit/0aad9e5e6ea216df9345a0a349c0815df4630270
Author: Razvan Crainea <razvan at opensips.org>
Date: 2022-11-14 (Mon, 14 Nov 2022)
Changed paths:
M modules/cgrates/cgrates_engine.c
Log Message:
-----------
cgrates: fix infinite re-connect issue
When a non-default connection would have reconnected, due to a
mishandling of the return code of the `cgrc_reconn` function, a new
connection would have been created every time, resulting in infinite
re-connections. And in time, this would acquire all the available ports
(65k) and would no longer accept new connections.
Many thanks go to Vasilios Tzanoudakis (@vtzan on GitHub) for reporting
and providing a solid testbed for this.
Close #2850
(cherry picked from commit 27cd5d76d42c5c57a23111b433171f0e24d7254e)
More information about the Devel
mailing list