Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: 1.2.9
-
Component/s: mod_event_socket
-
Labels:None
-
Environment:Mac
-
Platform:Linux x86/gcc
-
FreeSWITCH GIT Revision:Sat Aug 21 22:39:01 2010 -0500
-
Reproduced with GIT HEAD?:N/A
-
lsb_release:N/A
-
Target Version:
Description
mod event socket retries endlessly on bind (say 8021) error. It makes sense on a server, but for FS runs on a desktop, i.e. fscomm, it's better to just fail load the mod.
This patch added a new config param: stop-on-bind-error.
It actually has a problem. it returns SWITCH_STATUS_TERM on fail. It just stops the run time loop, but the mod still marked as loded - I can see this when I try to load the mod again.
Please review the code, and if there's a way to "fail" the load completely, I can update the patch.
Thanks.
This patch added a new config param: stop-on-bind-error.
It actually has a problem. it returns SWITCH_STATUS_TERM on fail. It just stops the run time loop, but the mod still marked as loded - I can see this when I try to load the mod again.
Please review the code, and if there's a way to "fail" the load completely, I can update the patch.
Thanks.
This is untested !
Comments ?