libzmq-rs icon indicating copy to clipboard operation
libzmq-rs copied to clipboard

Race condition on ZAP connect

Open jean-airoldie opened this issue 5 years ago • 3 comments

~~https://github.com/zeromq/libzmq/issues/3523~~

jean-airoldie avatar May 28 '19 15:05 jean-airoldie

~~We should block until the handler is ready by sending and empty message to its client.~~

jean-airoldie avatar May 28 '19 15:05 jean-airoldie

See https://github.com/zeromq/libzmq/issues/3524. This causes the CI to randomly fail.

jean-airoldie avatar May 28 '19 18:05 jean-airoldie

Basically this makes the inproc transport not 100% reliable when tons of sockets are trying to authenticate at the same time. When this error occur, the authentication attempt fails so the socket stays in mute state, meaning the next recv / send call will fail with WouldBlock.

This is not a critical bug, but I it can bite you. However, I haven't encountered a used case where this could occur, other than in the unit tests for this library.

jean-airoldie avatar Jun 17 '19 03:06 jean-airoldie