common/iobuf.c: Improve iobuf_peek.
* common/iobuf.c (underflow): Take additional parameter clear_pending_eof. If not set, don't clear a pending eof when returning EOF. Update callers. (iobuf_peek): Fill the internal buffer, if needed, to be able to better satisfy any request.
- Signed-off-by: Neal H. Walfield <neal@g10code.com>.