Commit Briefs
CHANGES for 0.111 (tags/0.111)
got-fetch-http: improve handling of HTTP chunked responses
Use a cursor inside the buffer to parse the reply and handle the chunking delimiters instead of memmove()'ing around memory all the time. Spotted after a report from Colin Percival on IRC (thank you!) about got-fetch-http hogging the CPU while cloning the FreeBSD src.git repository. While here also simplify the chunked/non-chunked distinction and teach http_read() how to directly copy the data to a FILE. tested also by Colin, ok stsp@
Plug some memory leaks in got-{send,fetch}-pack
my_capabilities was leaked in both got-send-pack and got-fetch-pack and needed freeing it in both. ok op@
reduce the send_response() timeout
For some reason this timeout was blocking long enough to make other waiting client connections time out. Reduce the amount of retries.