[asterisk-commits] tilghman: branch group/manager_http_auth r190348 - /team/group/manager_http_a...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Apr 23 15:27:01 CDT 2009
Author: tilghman
Date: Thu Apr 23 15:26:51 2009
New Revision: 190348
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=190348
Log:
Removing unrelated change (of limiting manager sessions)
Modified:
team/group/manager_http_auth/main/manager.c
Modified: team/group/manager_http_auth/main/manager.c
URL: http://svn.digium.com/svn-view/asterisk/team/group/manager_http_auth/main/manager.c?view=diff&rev=190348&r1=190347&r2=190348
==============================================================================
--- team/group/manager_http_auth/main/manager.c (original)
+++ team/group/manager_http_auth/main/manager.c Thu Apr 23 15:26:51 2009
@@ -130,8 +130,6 @@
static char global_realm[MAXHOSTNAMELEN]; /*!< Default realm */
static int block_sockets;
-#define MAX_SESSIONS 256 /*!< Maximum active sessions */
-static int num_sessions;
static int manager_debug; /*!< enable some debugging code in the manager */
@@ -527,7 +525,6 @@
newsession->writetimeout = 100;
newsession->send_events = -1;
newsession->sin = sin;
- ast_atomic_fetchadd_int(&num_sessions, 1);
ao2_link(sessions, newsession);
@@ -544,7 +541,6 @@
static void session_destroy(struct mansession_session *s)
{
ao2_unlink(sessions, s);
- ast_atomic_fetchadd_int(&num_sessions, -1);
}
@@ -931,7 +927,6 @@
static void destroy_session(struct mansession_session *session)
{
ao2_unlink(sessions, session);
- ast_atomic_fetchadd_int(&num_sessions, -1);
free_session(session);
}
@@ -3466,11 +3461,6 @@
struct ast_str *buf;
struct ao2_iterator i;
- /* Abort if there aren't any manager sessions */
- if (!num_sessions) {
- return 0;
- }
-
if (!(buf = ast_str_thread_get(&manager_event_buf, MANAGER_EVENT_BUF_INITSIZE))) {
return -1;
}
@@ -4044,12 +4034,6 @@
if (!(session = find_session(ident, 1))) {
- if (num_sessions >= MAX_SESSIONS) {
- /* Limit the active session numbers */
- ast_http_error(ser, 500, "Server Error", "Internal Server Error (to many connections)\n");
- return -1;
- }
-
/**/
/* Create new session.
* While it is not in the list we don't need any locking
@@ -4358,13 +4342,6 @@
AST_RWLIST_UNLOCK(&users);
if (!(session = find_session_by_nonce(d.username, nonce, &stale))) {
-
- if (num_sessions >= MAX_SESSIONS) {
- /* Limit the active session numbers */
- ast_http_error(ser, 500, "Server Error", "Internal Server Error (to many connections)\n");
- return -1;
- }
-
/*
* Create new session.
* While it is not in the list we don't need any locking
More information about the asterisk-commits
mailing list