Commits


CHANGES for 0.111


fix gotsysd regress 'make vm' in case bsd.rd is looking for an upcoming release


ensure that gotsysctl gets installed into /usr/local/sbin


sync dist-file list


switch to UID 600 for _gotsysd to match the ports tree


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@


revert part of previous commit which wasn't actually needed for memleak checks


fix all remaining gotwebd leaks the regress memleak checker was flagging


free gotweb.c iev_server on shutdown


also clear iev_gotweb->ibuf before exit to appease the memleak checker


free iev_gotweb before exiting; harmless leak but 'make regress' flags it


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.


track per-request connection state in struct request, not struct socket


do not keep re-arming the accept pause timer in gotwebd if already armed


log fcgi requests which have timed out


expose error status of gotweb_process_request() to the caller


fix read error handling in gotweb_render_patch() and check error before writing


fix previous commit (build breakage)


do not send fcgi end record trailer to broken connections


fix error handling in fcgi_forward_response()


make writes in fcgi_forward_response() time out to avoid gotwebd getting stuck


set CLOEXEC and NONBLOCK flags on the pipe between server and gotweb procs


stop using EV_PERSIST for fcgi_request and fix error handling


fix format string specifier for c->request_id