- commit
- 94e1a637be3c72733884019216e4a95cfde54308
- parent
- 324d95575c6a54d4aebd07bb4409158be08d5ba5
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2020-03-25 05:43
reduce ping frequency
Diffstat
| M | via.go | 2 | +- |
1 files changed, 1 insertions, 1 deletions
diff --git a/via.go b/via.go
@@ -128,7 +128,7 @@ func getBlocking(w http.ResponseWriter, r *http.Request) {
128 128 func getSse(w http.ResponseWriter, r *http.Request) {
129 129 key, password := splitPassword(r.URL.Path)
130 130
131 -1 ticker := time.NewTicker(time.Second)
-1 131 ticker := time.NewTicker(10 * time.Second)
132 132 defer ticker.Stop()
133 133
134 134 flusher, ok := w.(http.Flusher)