Encountered a panic in the client when a subscribe message is sent and the connection is immediately closed (logs included below).
The waitForListener function will eventually timeout but when it does an attempt to write to the acts channel which has already closed produces the panic. The fix is to close all listener channels before exiting main run() loop which allows waitForListener to determine the listener channel has closed and return w/o writing acts.
NOTE: Also includes govendor update github.com/jtolds/gls as unit tests panic w/o this (using go 1.14)
Encountered a panic in the client when a subscribe message is sent and the connection is immediately closed (logs included below). The
waitForListener
function will eventually timeout but when it does an attempt to write to theacts
channel which has already closed produces the panic. The fix is to close all listener channels before exiting mainrun()
loop which allowswaitForListener
to determine the listener channel has closed and return w/o writingacts
.NOTE: Also includes
govendor update github.com/jtolds/gls
as unit tests panic w/o this (using go 1.14)