sofar/buxton — pull request #95 by walyong (2014-07-01 13:36:40+00:00)
Title: [RFC] daemon: try to read more when only message is remained

I didn't test this yet but the loop continue condition some feel strange to me.

In last try of the loop, likely cl->size be smaller than cl->offset.
Without this patch, the loop will try to continue by below code, then cl->size - cl->offset will be overflow.
if (cl->size != cl->offset) {
continue;
}