Flush buffered data on polling

This commit is contained in:
Juan Font Alonso committed 2022-06-25 20:47:42 +02:00
1 parent 39b58f7d4c
commit 657fb208d6
1 file changed
+4
+4
View File
@@ -323,6 +323,7 @@ func (h *Headscale) PollNetMapStream(
return return
} }
w.(http.Flusher).Flush()
log.Trace(). log.Trace().
Str("handler", "PollNetMapStream"). Str("handler", "PollNetMapStream").
@@ -390,6 +391,7 @@ func (h *Headscale) PollNetMapStream(
return return
} }
w.(http.Flusher).Flush()
log.Trace(). log.Trace().
Str("handler", "PollNetMapStream"). Str("handler", "PollNetMapStream").
@@ -478,6 +480,8 @@ func (h *Headscale) PollNetMapStream(
return return
} }
w.(http.Flusher).Flush()
log.Trace(). log.Trace().
Str("handler", "PollNetMapStream"). Str("handler", "PollNetMapStream").
Str("machine", machine.Hostname). Str("machine", machine.Hostname).