[OpenSIPS-Devel] [OpenSIPS/opensips] 27cd5d: cgrates: fix infinite re-connect issue
Răzvan Crainea
noreply at github.com
Mon Nov 14 16:48:41 UTC 2022
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 27cd5d76d42c5c57a23111b433171f0e24d7254e
https://github.com/OpenSIPS/opensips/commit/27cd5d76d42c5c57a23111b433171f0e24d7254e
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
More information about the Devel
mailing list