Skip to content

Commit

Permalink
fix(telnet): Fix slow connections causing input to hang
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Apr 19, 2024
1 parent 3a18456 commit 9e0680e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/telnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (s *TelnetServer) Handler(ctx context.Context, conn net.Conn, m *movie.Movi
ctx, cancel := context.WithCancel(ctx)
defer cancel()

termCh := make(chan string)
termCh := make(chan string, 1)
defer close(termCh)
sizeCh := make(chan telnet.WindowSize, 1)
defer close(sizeCh)
Expand Down

0 comments on commit 9e0680e

Please sign in to comment.