ASF Bugzilla – Attachment 31913 Details for
Bug 56703
"Current number of backend connections" counter ever increasing when timeouts are defined
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix connection statistics
patch-56703.txt (text/plain), 1.83 KB, created by
Martin Knoblauch
on 2014-08-13 13:16:42 UTC
(
hide
)
Description:
Patch to fix connection statistics
Filename:
MIME Type:
Creator:
Martin Knoblauch
Created:
2014-08-13 13:16:42 UTC
Size:
1.83 KB
patch
obsolete
>--- ./common/jk_ajp_common.c-2040812 2014-08-13 10:10:46.000000000 +0200 >+++ ./common/jk_ajp_common.c 2014-08-13 15:13:31.000000000 +0200 >@@ -1605,11 +1605,12 @@ > int err = JK_FALSE; > if (jk_is_socket_connected(ae->sd, l) == JK_FALSE) { > ae->last_errno = errno; >- jk_log(l, JK_LOG_DEBUG, >+ jk_log(l, JK_LOG_INFO, > "(%s) failed sending request, " > "socket %d is not connected any more (errno=%d, connected=%d)", > ae->worker->name, ae->sd, ae->last_errno, ae->worker->s->connected); > ajp_abort_endpoint(ae, JK_FALSE, l); >+ ae->worker->s->connected--; > err = JK_TRUE; > err_conn++; > } >@@ -3347,16 +3348,14 @@ > if (elapsed > aw->cache_timeout) { > time_t rt = 0; > n++; >- if (JK_IS_DEBUG_LEVEL(l)) >- rt = time(NULL); >+ rt = time(NULL); > aw->ep_cache[i]->reuse = JK_FALSE; > m_sock[m_count++] = aw->ep_cache[i]->sd; > aw->ep_cache[i]->sd = JK_INVALID_SOCKET; > ajp_reset_endpoint(aw->ep_cache[i], l); >- if (JK_IS_DEBUG_LEVEL(l)) >- jk_log(l, JK_LOG_DEBUG, >- "(%s) cleaning pool slot=%d elapsed %d in %d", >- aw->name, i, elapsed, (int)(difftime(time(NULL), rt))); >+ jk_log(l, JK_LOG_INFO, >+ "(%s) cleaning pool slot=%d elapsed %d in %d", >+ aw->name, i, elapsed, (int)(difftime(time(NULL), rt))); > } > } > if (cnt <= aw->ep_mincache_sz + n) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 56703
: 31913 |
31914