Blocking commands from mod_v8
I'm running an application in javascript in mod_v8, but in a couple of cases I need to call external commands. Sometimes these block and never return, so I can see another freeswitch instance in the ps listing, and if I kill with -12, my javascript app will continue from where it got stuck. I've tried using 'system' and 'apiExecute' (in turn calling 'system'), and experience blocks with both. One example of a blocking command was 'soxi', but as a test I called to an executable that simply prints "0" and then exits. This also gets blocked. Freeswitch version is 1.4.12, and I'm running on Ubuntu 12.04. In my test environment this is running on a virtual machine, but I've also experienced the blocking problem on hardware with the same configuration. I would appreciate any tips you could give me. Regards, Martyn
You could try 1.4.19? If the issue persists, build a test and file a JIRA. On Mon, Jun 22, 2015 at 8:25 AM, Martyn Davies <martyn@magiccow.co.uk> wrote:
I'm running an application in javascript in mod_v8, but in a couple of cases I need to call external commands. Sometimes these block and never return, so I can see another freeswitch instance in the ps listing, and if I kill with -12, my javascript app will continue from where it got stuck. I've tried using 'system' and 'apiExecute' (in turn calling 'system'), and experience blocks with both.
One example of a blocking command was 'soxi', but as a test I called to an executable that simply prints "0" and then exits. This also gets blocked.
Freeswitch version is 1.4.12, and I'm running on Ubuntu 12.04. In my test environment this is running on a virtual machine, but I've also experienced the blocking problem on hardware with the same configuration.
I would appreciate any tips you could give me.
Regards, Martyn
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com ClueCon 2015 Call for Speakers <https://www.cluecon.com/call-for-speakers/> | Register <https://freeswitch.com/cart.php?gid=1> TODAY! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
participants (2)
-
Brian West
-
Martyn Davies