From 5b3337a73304a9fa72bac8eae1014550c548ef77 Mon Sep 17 00:00:00 2001 From: Eric Malm Date: Mon, 26 Jan 2015 10:22:44 -0800 Subject: [PATCH] Prevent event handler go routine leak [#85810836] Signed-off-by: Georgi Sabev --- handlers/event_stream_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/event_stream_handler.go b/handlers/event_stream_handler.go index 27a1f98..62f1ec2 100644 --- a/handlers/event_stream_handler.go +++ b/handlers/event_stream_handler.go @@ -41,7 +41,7 @@ func (h *EventStreamHandler) EventStream(w http.ResponseWriter, req *http.Reques flusher.Flush() eventID := 0 - errChan := make(chan error) + errChan := make(chan error, 1) eventChan := make(chan receptor.Event) for {