Hi,

I found the following 2 chunks of code suspecting:

- https://github.com/zeromq/libzmq/blob/master/src/select.cpp#L110-L113 
<https://github.com/zeromq/libzmq/blob/master/src/select.cpp#L110-L113>
- https://github.com/zeromq/libzmq/blob/master/src/select.cpp#L170-L173 
<https://github.com/zeromq/libzmq/blob/master/src/select.cpp#L170-L173>

Why do we need to clear descriptos, if readfds/writefds/exceptfds are 
initialized with contents of source_set_* at each iteration of the loop?
It may lead to an error if set is modified _while_ there is an active select in 
another thread (I don't know if an instance of select_t can be used from 
multiple threads).
Other than that this code looks pointless.

What do you think?


Best Regards,
Ilya Kulakov

_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to