fix p2phttp server to not get stuck

Process 1 command, then stop. Hopefully each of the Handlers will only
need 1 command.
This commit is contained in:
Joey Hess 2024-07-09 14:26:30 -04:00
parent 3d13521479
commit dcd77ee555
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 26 additions and 9 deletions

View file

@ -131,9 +131,7 @@ withLocalP2PConnections a = do
(const True) h2 h1
(ConnIdent (Just "http client"))
runst <- liftIO $ mkrunst connparams
-- TODO is this right? It needs to exit
-- when the client stops sending messages.
let server = P2P.serveAuthed
let server = P2P.serveOneCommandAuthed
(connectionServerMode connparams)
(connectionServerUUID connparams)
let protorunner = void $