andreiz/php-zookeeper — Issue #6: ::get() can fetch 512 bytes at most
Author: hejin
Created: 2011-12-07 09:00:29+00:00
State: open

Hi guys,

I found there is the hard-coded limitation in the ::get() function.

I have some simple code to fix it, and the idea is.
* put the buffer to be static and big enough (say 1MB, align with the zk java community convention)
* 1st read to get node dataLength, 2nd read to fetch them all.

Of coz it should only work in single PHP thread, and to make it work with malloc/free is not hard.

Thanks,
Jeff