implement Locker

This commit is contained in:
Joey Hess 2024-07-08 21:00:10 -04:00
parent b758b01692
commit 3f402a20a8
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 55 additions and 10 deletions

View file

@ -28,16 +28,13 @@ Planned schedule of work:
## work notes
* Next step: Ready to begin implementing in servant. I have a file
`servant.hs` in the httpproto branch that works through some of the
* I have a file `servant.hs` in the httpproto branch that works through some of the
bytestring streaming issues.
* P2P.Http has LockContent disabled, needs `HasClient ClientM WebSocket`
implementation, or redesign not to use websockets
* A Locker should expire the lock on its own after 10 minutes.
* P2P.Http.clientGet needs to call v1 and v0, which needs a way to
add a DataLengthHeader to the type of them.
Or add it to the API for those versions, but document that it's not checked?
* Since each held lock needs a connection to a proxy, the Locker
could reference count, and avoid holding more than one lock per key.
* Perhaps: Support cgi program that proxies over to a webserver
speaking the http protocol.