zookeeper
zookeeper copied to clipboard
ZOOKEEPER-3420 - Fix compatibility issue in C client recv_buffer()
With newer ZK C Client and older ZK server, recv_buffer() could potentially return 0 continuously on non-blocking socket.
Fixing the issue by correctly finding how many bytes have been read.
@anmolnar @phunt PTAL
Added title description, I'll leave the review to someone with more C knowledge :)
@phunt @anmolnar please take a look, this fix seems important
@meszibalu Can you please take a look?