]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
only do the 10 second pause, not the reduction in max_sessions when the event system...
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 16 Aug 2011 16:03:29 +0000 (11:03 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 16 Aug 2011 16:03:29 +0000 (11:03 -0500)
src/mod/endpoints/mod_sofia/mod_sofia.h
src/switch_event.c

index 190212a22b62ff74dd3947f070b38fbc3173125c..ec3f9a78894fa534cc0aac0af694d85961cbf095 100644 (file)
@@ -33,7 +33,7 @@
  * mod_sofia.h -- SOFIA SIP Endpoint
  *
  */
-
+#define HAVE_MEMLEAK_LOG 1
 /*Defines etc..*/
 /*************************************************************************************************************************************************************/
 #define MANUAL_BYE 1
index b469b9f7b7c9c123f99976675a6230ba29d68e27..8265a182072075446e73ddb83a50a3e2fbcf642e 100644 (file)
@@ -333,17 +333,11 @@ static void *SWITCH_THREAD_FUNC switch_event_thread(switch_thread_t *thread, voi
 
 
                        if (++loops > 2) {
-                               uint32_t last_sps = 0, sess_count = switch_core_session_count();
                                if (auto_pause) {
                                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Event system *still* overloading.\n");
                                } else {
-                                       switch_core_session_ctl(SCSC_LAST_SPS, &last_sps);
-                                       last_sps = (uint32_t) (float) (last_sps * 0.75f);
-                                       sess_count = (uint32_t) (float) (sess_count * 0.75f);
                                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, 
-                                                                         "Event system overloading. Taking a 10 second break, Reducing max_sessions to %d %dsps\n", sess_count, last_sps);
-                                       switch_core_session_limit(sess_count);
-                                       switch_core_session_ctl(SCSC_SPS, &last_sps);
+                                                                         "Event system overloading. Taking a 10 second break\n");
                                        auto_pause = 10;
                                        switch_core_session_ctl(SCSC_PAUSE_INBOUND, &auto_pause);
                                }