From 307f1ad1f292656fd8d7b33d54759d6e1a09ade4 Mon Sep 17 00:00:00 2001 From: Dima Krasner Date: Mon, 7 Oct 2024 09:53:48 +0300 Subject: [PATCH] fix deadlock when Guppy request is cancelled on shutdown --- front/guppy/guppy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/guppy/guppy.go b/front/guppy/guppy.go index 2c72b564..d5aa897b 100644 --- a/front/guppy/guppy.go +++ b/front/guppy/guppy.go @@ -243,7 +243,7 @@ func (gl *Listener) ListenAndServe(ctx context.Context) error { }() sessions := make(map[string]chan []byte) - done := make(chan string, 1) + done := make(chan string, gl.Config.MaxGuppySessions) loop: for {