diff --git a/weed/server/volume_server_handlers.go b/weed/server/volume_server_handlers.go index eec78a7db..dcb92aa6b 100644 --- a/weed/server/volume_server_handlers.go +++ b/weed/server/volume_server_handlers.go @@ -50,6 +50,8 @@ func (vs *VolumeServer) privateStoreHandler(w http.ResponseWriter, r *http.Reque select { case <-r.Context().Done(): glog.V(4).Infof("request cancelled from %s: %v", r.RemoteAddr, r.Context().Err()) + w.WriteHeader(http.StatusInternalServerError) + vs.inFlightDownloadDataLimitCond.L.Unlock() return default: glog.V(4).Infof("wait because inflight download data %d > %d", inFlightDownloadSize, vs.concurrentDownloadLimit)