Re: [PATCH 03/11] pkt-line: create gentle packet_read_line functions

2016-09-27 Thread Kevin Wern
On Fri, Sep 16, 2016 at 03:17:28PM -0700, Junio C Hamano wrote: > Kevin Wern writes: > > > /* And complain if we didn't get enough bytes to satisfy the read. */ > > if (ret < size) { > > - if (options & PACKET_READ_GENTLE_ON_EOF) > > + if

Re: [PATCH 03/11] pkt-line: create gentle packet_read_line functions

2016-09-16 Thread Junio C Hamano
Kevin Wern writes: > /* And complain if we didn't get enough bytes to satisfy the read. */ > if (ret < size) { > - if (options & PACKET_READ_GENTLE_ON_EOF) > + if (options & (PACKET_READ_GENTLE_ON_EOF | > PACKET_READ_GENTLE_ALL)) >

[PATCH 03/11] pkt-line: create gentle packet_read_line functions

2016-09-15 Thread Kevin Wern
Create a functions that can read malformed messages without dying. Includes creation of flag PACKET_READ_GENTLE_ALL. For use handling prime-clone (or other server error) responses. Signed-off-by: Kevin Wern --- pkt-line.c | 47