Commits
- Commit:
507e51543a1bead6c8b3d28a06e2d9a42128a497
- From:
- Tobias Heider <me@tobhe.de>
- Via:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
Use got_pkt_readlen() to parse pkt-lens.
- Commit:
06dc3607479d190ff1dacaad2823903c41ff024f
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
make got-fetch-http pass "done\n" through rather than faking it
Without this we exit the loop early and got-fetch-pack sees unexpected
end-of-file on stdout trying to write its final "done\n" message.
ok op@
- Commit:
ed77be6862e23dbd16a470dbeed633200d4ece9c
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
fix previous; pledge("stdio") must wait until after the TLS handshake
- Commit:
69e2f7200332153e8dd19ba643dc552c6f26ac6e
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
use pledge("stdio") late in got-fetch-http, currently as early as possible
- Commit:
cf87b1d1df52185fa21efde684c398a2d1c61d1d
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
remove dead code under DEBUG_HTTP; ok op@
- Commit:
a9a48d93a276ff55f1ad9902dd84b77c899fd027
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
use unveil to restrict filesystem access of got-fetch-http
With HTTPS we only need to be able to read /etc/ssl/cert.pem.
With plaintext HTTP no filesystem access is needed at all.
- Commit:
e9495ffd168087aa382d316bfd6d75f2082b462e
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
can drop "rpath" pledge in got-fetch-http if plaintext HTTP is being used
- Commit:
a36700cf7dff48deb717ff99b6e95645807c7704
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
ensure that a pkt-line fits into read buffers used by got-fetch-http
- Commit:
b39e70da819f164300ad8dc002f029f37a139a61
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
add missing \n to got-fetch-http debug output
- Commit:
f1d0a69863bb9f6c8234a52c4229fc5debe0a82f
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
revert my previous two commits because they broke clone over http
- Commit:
3b4ee51b0d8c37b85d25bd460969065466b58838
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
make got-fetch-http get_refs() understand when packet lines end
Previously it would only exit the loop when reading failed.
ok tobhe@
- Commit:
8e1fcd55c45b2b550cec5585276e93d7f5d896fe
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
log pkt lines read and written by got-fetch-http, in verbose mode
- Commit:
ff4d9c2e05d9f8f0b985f1ca27789ff37c9968bd
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
add comments to the HTTP fetching process which clarify how it works
- Commit:
8ee2e0cf585dcaf492487fb8afc4c9099194651a
- From:
- Tobias Heider <me@tobhe.de>
- Via:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
Remove some dead code
- Commit:
452122e274c9980e7776212df071c7104da18d52
- From:
- Tobias Heider <me@tobhe.de>
- Via:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
Rewrite got-fetch-http I/O using bufio API. This should help make the
code more portable supports almost everything we need out of the box.
pledge needs the rpath promise because of libtls. This was technically
also the case with the old API but we didn't actually enable pledge
thanks to DEBUG_HTTP.
The synchronous bufio wrappers should probably move to lib/bufio.c
in the future.
ok and feedback from op@
- Commit:
29460ff0cab862cacf5ec17a35c653e83ffff229
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
improve got-fetch-http request/response logging in verbose mode
- Commit:
09876a9d351bc3b655effc2a43f536444821d43a
- From:
- Tobias Heider <me@tobhe.de>
- Via:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
Rename got-http helper to got-fetch-http to match naming scheme.
We aren't planning to support sending anyway.
ok stsp@