mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
Add connection close proactively for Walk() http/rpc (#7645)
This commit is contained in:
parent
9b4a81ee60
commit
0022c9d210
@ -415,6 +415,7 @@ func (s *storageRESTServer) WalkHandler(w http.ResponseWriter, r *http.Request)
|
||||
}
|
||||
defer w.(http.Flusher).Flush()
|
||||
|
||||
w.Header().Set("Connection", "close") // Pro-actively ask client to close this connection.
|
||||
encoder := gob.NewEncoder(w)
|
||||
for fi := range fch {
|
||||
encoder.Encode(&fi)
|
||||
|
Loading…
Reference in New Issue
Block a user