View ngx_http_upstream_dynamic_resolve_servers.diff
diff --git a/ngx_http_upstream_dynamic_resolve_servers.c b/ngx_http_upstream_dynamic_resolve_servers.c | |
index 62ba520..48ec4eb 100644 | |
--- a/ngx_http_upstream_dynamic_resolve_servers.c | |
+++ b/ngx_http_upstream_dynamic_resolve_servers.c | |
@@ -640,27 +640,30 @@ reinit_upstream: | |
pool_queue = &dynamic_server->pool_queue; | |
- ngx_log_debug(NGX_LOG_DEBUG_CORE, ngx_cycle->log, 0, | |
+ ngx_log_error(NGX_LOG_INFO, ngx_cycle->log, 0, |
View nginx-upstream-dynamic-resolve-servers.patch
diff -ur nginx-1.18.0.orig/src/http/ngx_http_upstream.c nginx-1.18.0/src/http/ngx_http_upstream.c | |
--- nginx-1.18.0.orig/src/http/ngx_http_upstream.c 2020-04-21 23:09:01.000000000 +0900 | |
+++ nginx-1.18.0/src/http/ngx_http_upstream.c 2020-07-30 11:28:08.000000000 +0900 | |
@@ -192,6 +192,8 @@ | |
ngx_http_upstream_t *u, ngx_connection_t *c); | |
#endif | |
+extern ngx_int_t ngx_http_upstream_dynamic_resolve_directive(ngx_conf_t *cf, | |
+ ngx_http_upstream_server_t *us, ngx_uint_t *i); | |
View ngx_http_upstream_dynamic_servers-33.diff
diff --git a/ngx_http_upstream_dynamic_servers.c b/ngx_http_upstream_dynamic_servers.c | |
index 05b2889..069b7f9 100644 | |
--- a/ngx_http_upstream_dynamic_servers.c | |
+++ b/ngx_http_upstream_dynamic_servers.c | |
@@ -7,7 +7,17 @@ | |
(ngx_resolver_node_t *) \ | |
((u_char *) (n) - offsetof(ngx_resolver_node_t, node)) | |
+typedef struct | |
+{ |
View tcp-sack-retrans.pl
#!/usr/bin/perl | |
use strict; | |
sub netstat { | |
my %stats; | |
{ | |
open my $fh, '<', '/proc/net/snmp' or die "$!\n"; | |
my @keys; | |
while (<$fh>) { | |
chomp; |
View netsv
#!perl | |
use strict; | |
my %stats; | |
{ | |
open my $fh, '<', '/proc/net/snmp' or die "$!\n"; | |
my @keys; | |
while (<$fh>) { | |
chomp; |
View ngx_http_headers_more_headers_in.patch
diff --git a/src/ngx_http_headers_more_headers_in.c b/src/ngx_http_headers_more_headers_in.c | |
index c3eb8f7..527c8a5 100644 | |
--- a/src/ngx_http_headers_more_headers_in.c | |
+++ b/src/ngx_http_headers_more_headers_in.c | |
@@ -739,6 +739,7 @@ ngx_http_set_connection_header(ngx_http_request_t *r, | |
if (ngx_strcasestrn(value->data, "close", 5 - 1)) { | |
r->headers_in.connection_type = NGX_HTTP_CONNECTION_CLOSE; | |
r->headers_in.keep_alive_n = -1; | |
+ r->keepalive = 0; | |
View gist:dbbdb8198c72addc2fcafbce79d5f6b6
diff --git a/starter.go b/starter.go | |
index c65ce00..4d47000 100644 | |
--- a/starter.go | |
+++ b/starter.go | |
@@ -517,7 +517,6 @@ func (s *Starter) StartWorker(sigCh chan os.Signal, ch chan processState) *os.Pr | |
sigs = append(sigs, sig) | |
} | |
} | |
- | |
// if received any signals, during the wait, we bail out |
View fio_wrap.pl
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use JSON; | |
sub cap_cmd { | |
my ($cmdref) = @_; | |
pipe my $logrh, my $logwh | |
or die "Died: failed to create pipe:$!\n"; | |
my $pid = fork; |
View gist:8bb1f162f5c58abaa6ed5c79630b47bc
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use IO::Handle; | |
use Getopt::Long; | |
use File::Spec; | |
sub find_path { | |
my $pg = shift; |
View gist:dafd347524e99562d5a2
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use JSON; | |
sub cap_cmd { | |
my ($cmdref) = @_; | |
pipe my $logrh, my $logwh | |
or die "Died: failed to create pipe:$!\n"; |
NewerOlder