Commit baf89b43 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Close the auth TCP connection eagerly

We should not leave open a TCP connection to the auth backend
(Unicorn) in the CLOSE_WAIT state, it may take several minutes for
the HTTP response to our own client to finish.
parent 1b8d5038
......@@ -149,6 +149,8 @@ func gitHandler(w http.ResponseWriter, r *http.Request) {
fail500(w, err)
return
}
// Don't hog a TCP connection in CLOSE_WAIT, we can already close it now
authResponse.Body.Close()
// Validate the path to the Git repository
foundPath := pathMatch[1]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment