goczmq icon indicating copy to clipboard operation
goczmq copied to clipboard

Socket not removed from Poller during `Remove()`

Open ashmrtn opened this issue 3 years ago • 0 comments

Poller.Remove() doesn't actually remove the given socket from the underlying czmq poller, it just removes it from the slice of golang objects wrapping sockets. While I can't explain the exact reason behind it, this is causing weird behavior when sockets are removed from the poller (at the golang level), the sockets are destroyed, and then new sockets are added to the poller. In these cases the poller never notices new reads pending on the new sockets

ashmrtn avatar Jul 23 '21 22:07 ashmrtn