Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: mod_erlang_event
-
Labels:None
-
Environment:Mac 10.6.7 64bit
-
Platform:OS/X/gcc
-
FreeSWITCH GIT Revision:FreeSWITCH Version 1.0.head (git-765908f 2011-05-22 19-10-52 -0500)
-
Reproduced with GIT HEAD?:N/A
-
lsb_release:N/A
Description
As ref to an email in the list, I found that mod_erlang_event can send messages as slow as 1/100ms = 10/s. It is because that there's an ei_accept_tmo which blocks 100ms in each loop when is cannot get a message from erlang side even there's many messages to be send in FS queue.
Looks mod_event_socket use a multi-thread solution but not in mod_erlang_event, however, this is a simple hack which can be 100 times faster than the old approach.
Sorry I'm attaching this patch in a hurry based on FreeSWITCH Version 1.0.head (git-765908f 2011-05-22 19-10-52 -0500)
Let me know if if you have problem to merge and I can update to git head
Thanks.
Looks mod_event_socket use a multi-thread solution but not in mod_erlang_event, however, this is a simple hack which can be 100 times faster than the old approach.
Sorry I'm attaching this patch in a hurry based on FreeSWITCH Version 1.0.head (git-765908f 2011-05-22 19-10-52 -0500)
Let me know if if you have problem to merge and I can update to git head
Thanks.