mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-24 11:29:09 +00:00
proxy/service_health: release read lock early
Signed-off-by: Daman Arora <aroradaman@gmail.com>
This commit is contained in:
@@ -235,8 +235,8 @@ func (h hcHandler) ServeHTTP(resp http.ResponseWriter, req *http.Request) {
|
||||
return
|
||||
}
|
||||
count := svc.endpoints
|
||||
kubeProxyHealthy := h.hcs.healthzServer.IsHealthy()
|
||||
h.hcs.lock.RUnlock()
|
||||
kubeProxyHealthy := h.hcs.healthzServer.IsHealthy()
|
||||
|
||||
resp.Header().Set("Content-Type", "application/json")
|
||||
resp.Header().Set("X-Content-Type-Options", "nosniff")
|
||||
|
Reference in New Issue
Block a user