• Show log

    Commit

  • Hash : 62494bf2
    Author : Patrick Steinhardt
    Date : 2016-11-02T09:38:40

    transports: smart: abort receiving packets on end of stream
    
    When trying to receive packets from the remote, we loop until
    either an error distinct to `GIT_EBUFS` occurs or until we
    successfully parsed the packet. This does not honor the case
    where we are looping over an already closed socket which has no
    more data, leaving us in an infinite loop if we got a bogus
    packet size or if the remote hang up.
    
    Fix the issue by returning `GIT_EEOF` when we cannot read data
    from the socket anymore.