Hey guys, if I'm using curl in a module and the connection times out do you have suggestion for how this should be handled? For example, if I disconnect freeswitch from the internet and have the following settings: curl_easy_setopt(curl_handle, CURLOPT_CONNECTTIMEOUT, 5L); curl_easy_setopt(curl_handle, CURLOPT_TIMEOUT, 5L); switch_curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1L); it never times out and then crashes freeswitch. Is this expected behavior? Is there something I should be doing instead? Thanks, chris -- mandra
Any ideas? On Saturday, April 9, 2016, Chris Mandra <mandra@gmail.com> wrote:
Hey guys, if I'm using curl in a module and the connection times out do you have suggestion for how this should be handled?
For example, if I disconnect freeswitch from the internet and have the following settings:
curl_easy_setopt(curl_handle, CURLOPT_CONNECTTIMEOUT, 5L); curl_easy_setopt(curl_handle, CURLOPT_TIMEOUT, 5L); switch_curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1L);
it never times out and then crashes freeswitch. Is this expected behavior? Is there something I should be doing instead? Thanks, chris
-- mandra
-- mandra c:410.258.5281
So you are adding code to it and then its crashing?
On Apr 10, 2016, at 10:47 PM, Chris Mandra <mandra@gmail.com> wrote:
Any ideas?
On Saturday, April 9, 2016, Chris Mandra <mandra@gmail.com <mailto:mandra@gmail.com>> wrote: Hey guys, if I'm using curl in a module and the connection times out do you have suggestion for how this should be handled?
For example, if I disconnect freeswitch from the internet and have the following settings:
curl_easy_setopt(curl_handle, CURLOPT_CONNECTTIMEOUT, 5L); curl_easy_setopt(curl_handle, CURLOPT_TIMEOUT, 5L); switch_curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1L);
it never times out and then crashes freeswitch. Is this expected behavior? Is there something I should be doing instead? Thanks, chris
Thanks for responding. Yes - I make sure it's not connected to the internet and run my module with the curl functions. I'd expect it to time out or something, but instead it's crashing freeswitch. On Mon, Apr 11, 2016 at 4:01 PM, Michael Jerris <mike@jerris.com> wrote:
So you are adding code to it and then its crashing?
On Apr 10, 2016, at 10:47 PM, Chris Mandra <mandra@gmail.com> wrote:
Any ideas?
On Saturday, April 9, 2016, Chris Mandra <mandra@gmail.com> wrote:
Hey guys, if I'm using curl in a module and the connection times out do you have suggestion for how this should be handled?
For example, if I disconnect freeswitch from the internet and have the following settings:
curl_easy_setopt(curl_handle, CURLOPT_CONNECTTIMEOUT, 5L); curl_easy_setopt(curl_handle, CURLOPT_TIMEOUT, 5L); switch_curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1L);
it never times out and then crashes freeswitch. Is this expected behavior? Is there something I should be doing instead? Thanks, chris
_________________________________________________________________________ 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
-- mandra c:410.258.5281
have you looked at the backtrace to see why it's crashing? is it in this new module you made? On Tuesday, April 12, 2016, Chris Mandra <mandra@gmail.com> wrote:
Thanks for responding. Yes - I make sure it's not connected to the internet and run my module with the curl functions. I'd expect it to time out or something, but instead it's crashing freeswitch.
On Mon, Apr 11, 2016 at 4:01 PM, Michael Jerris <mike@jerris.com <javascript:_e(%7B%7D,'cvml','mike@jerris.com');>> wrote:
So you are adding code to it and then its crashing?
On Apr 10, 2016, at 10:47 PM, Chris Mandra <mandra@gmail.com <javascript:_e(%7B%7D,'cvml','mandra@gmail.com');>> wrote:
Any ideas?
On Saturday, April 9, 2016, Chris Mandra <mandra@gmail.com <javascript:_e(%7B%7D,'cvml','mandra@gmail.com');>> wrote:
Hey guys, if I'm using curl in a module and the connection times out do you have suggestion for how this should be handled?
For example, if I disconnect freeswitch from the internet and have the following settings:
curl_easy_setopt(curl_handle, CURLOPT_CONNECTTIMEOUT, 5L); curl_easy_setopt(curl_handle, CURLOPT_TIMEOUT, 5L); switch_curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1L);
it never times out and then crashes freeswitch. Is this expected behavior? Is there something I should be doing instead? Thanks, chris
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <javascript:_e(%7B%7D,'cvml','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 <javascript:_e(%7B%7D,'cvml','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
-- mandra c:410.258.5281
participants (2)
-
Chris Mandra
-
Michael Jerris