[server] Do not start accept
-ing until seccomp
phase-3 filter is configured.
This commit is contained in:
parent
624ba8df4b
commit
fc9216802e
1 changed files with 20 additions and 2 deletions
|
@ -2014,6 +2014,7 @@ func main_0 () (error) {
|
||||||
|
|
||||||
|
|
||||||
var _splitListenerClose func () ()
|
var _splitListenerClose func () ()
|
||||||
|
var _splitListenerStart func () ()
|
||||||
if (_httpTls1Listener != nil) && (_httpTls2Listener == nil) && !_http2Disabled {
|
if (_httpTls1Listener != nil) && (_httpTls2Listener == nil) && !_http2Disabled {
|
||||||
log.Printf ("[ii] [1098a405] [bind-1..] listening on `https://%s/` (using Go HTTP supporting only HTTP/2 split);\n", _bindTls1)
|
log.Printf ("[ii] [1098a405] [bind-1..] listening on `https://%s/` (using Go HTTP supporting only HTTP/2 split);\n", _bindTls1)
|
||||||
_tls1Config.NextProtos = append ([]string { "h2" }, _tls1Config.NextProtos ...)
|
_tls1Config.NextProtos = append ([]string { "h2" }, _tls1Config.NextProtos ...)
|
||||||
|
@ -2034,7 +2035,7 @@ func main_0 () (error) {
|
||||||
LogError (_error, "[a5bce477] [bind-1..] failed closing TLS listener!")
|
LogError (_error, "[a5bce477] [bind-1..] failed closing TLS listener!")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
go func () () {
|
_splitListenerStart = func () () {
|
||||||
for {
|
for {
|
||||||
if _connection_0, _error := _tlsListener.Accept (); _error == nil {
|
if _connection_0, _error := _tlsListener.Accept (); _error == nil {
|
||||||
go func () () {
|
go func () () {
|
||||||
|
@ -2069,7 +2070,7 @@ func main_0 () (error) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} ()
|
}
|
||||||
_httpTls1Listener = _httpTls1Listener_0
|
_httpTls1Listener = _httpTls1Listener_0
|
||||||
_httpTls2Listener = _httpTls2Listener_0
|
_httpTls2Listener = _httpTls2Listener_0
|
||||||
} else {
|
} else {
|
||||||
|
@ -2157,6 +2158,20 @@ func main_0 () (error) {
|
||||||
} ()
|
} ()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if _splitListenerStart != nil {
|
||||||
|
_waiter.Add (1)
|
||||||
|
go func () () {
|
||||||
|
defer _waiter.Done ()
|
||||||
|
if !_quiet {
|
||||||
|
log.Printf ("[ii] [bdfd32c0] [bind-1..] starting HTTP/2 splitter...\n")
|
||||||
|
}
|
||||||
|
_splitListenerStart ()
|
||||||
|
if !_quiet {
|
||||||
|
log.Printf ("[ii] [5f3807ae] [bind-1..] stopped HTTP/2 splitter;\n")
|
||||||
|
}
|
||||||
|
} ()
|
||||||
|
}
|
||||||
|
|
||||||
if _server.httpTls1Server != nil {
|
if _server.httpTls1Server != nil {
|
||||||
_waiter.Add (1)
|
_waiter.Add (1)
|
||||||
go func () () {
|
go func () () {
|
||||||
|
@ -2261,6 +2276,9 @@ func main_0 () (error) {
|
||||||
_waiter.Add (1)
|
_waiter.Add (1)
|
||||||
go func () () {
|
go func () () {
|
||||||
defer _waiter.Done ()
|
defer _waiter.Done ()
|
||||||
|
if !_quiet {
|
||||||
|
log.Printf ("[ii] [6cfb7bc3] [bind-1..] stopping HTTP/2 splitter...\n")
|
||||||
|
}
|
||||||
_splitListenerClose ()
|
_splitListenerClose ()
|
||||||
} ()
|
} ()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue