Fix truncation of the data retrieved with --list-documents
commit0eec7764af5cbcf70e10e44d2eb7b486e5c7cd53
authorColomban Wendling <ban@herbesfolles.org>
Tue, 17 Dec 2013 15:17:21 +0000 (17 16:17 +0100)
committerColomban Wendling <ban@herbesfolles.org>
Tue, 17 Dec 2013 15:17:21 +0000 (17 16:17 +0100)
treef4a9b5c258c56d4aa527a5b0683708a175e4b1b7
parentc0a233fcc3860aa98a38754d1d5e69e51e991ac5
Fix truncation of the data retrieved with --list-documents

Do not truncate the document list to the size of the buffer used for
communication.

Since we now read multiple times, we need to make sure to always send
ETX so a reader don't hang reading the next chunk if the data sent had
exactly the size of the buffer.
src/socket.c