Sfoglia il codice sorgente

builder: notify output buffering on body close

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Tonis Tiigi 7 anni fa
parent
commit
1a6262e9ef
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      api/server/router/build/build_routes.go

+ 5 - 0
api/server/router/build/build_routes.go

@@ -345,6 +345,11 @@ func (r *rcNotifier) Read(b []byte) (int, error) {
 	return n, err
 }
 
+func (r *rcNotifier) Close() error {
+	r.notify()
+	return r.Closer.Close()
+}
+
 type wcf struct {
 	writeCloseFlusher
 	mu      sync.Mutex