Forgot to flush
This commit is contained in:
parent
b9eef3b3a8
commit
274590c837
@ -174,9 +174,10 @@ func (s *Server) HandlerAttemptStream(w http.ResponseWriter, r *http.Request) {
|
|||||||
case <-r.Context().Done():
|
case <-r.Context().Done():
|
||||||
return
|
return
|
||||||
case <-ticker.C:
|
case <-ticker.C:
|
||||||
if _, err := io.WriteString(w, ": %s\n\n"); err != nil {
|
if _, err := io.WriteString(w, ": keep-alive\n\n"); err != nil {
|
||||||
s.ServerLogger.Warnw("Error writing event", "error", err)
|
s.ServerLogger.Warnw("Error writing event", "error", err)
|
||||||
}
|
}
|
||||||
|
flusher.Flush()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user