implemented serveGet and clientGet
authorJoey Hess <joeyh@joeyh.name>
Wed, 10 Jul 2024 20:06:39 +0000 (16:06 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 10 Jul 2024 20:06:39 +0000 (16:06 -0400)
commit1e0f92a5a1ccf7ff4c51c67c27a826709a99301b
treeef1ff1daf44e977a2273736d7328f3f92c6d5141
parentf9b7ce72242619776bfad44fc74cc838b549bbe1
implemented serveGet and clientGet

Both are only at bare proof of concept stage. Still need to deal with
signaling validity and invalidity, and checking it.

And there's a bad bug: After -JN*2 requests, another request hangs!

So, I think it's failing to free up the Annex worker and end of request
lifetime.

Perhaps I need to use this:

https://docs.servant.dev/en/stable/cookbook/managed-resource/ManagedResource.html
Command/P2PHttp.hs
P2P/Annex.hs
P2P/Http.hs
P2P/Http/State.hs
P2P/Protocol.hs