mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-29 21:33:25 -05:00
Flush buffered data on polling
This commit is contained in:
4
poll.go
4
poll.go
@@ -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).
|
||||||
|
|||||||
Reference in New Issue
Block a user