extend p2p protocol to support gitremote-helpers connect
authorJoey Hess <joeyh@joeyh.name>
Sat, 19 Nov 2016 20:30:57 +0000 (16:30 -0400)
committerJoey Hess <joeyh@joeyh.name>
Sun, 20 Nov 2016 02:39:36 +0000 (22:39 -0400)
commit0eaad7ca3a847b0f56ed2dbf72d06a33f41749c8
tree7ac21d3cbcae2858aa59dba55aaab88c34edc368
parent9d9d1fdcd43012a3ef35a538bdf9fe5043b3dc46
extend p2p protocol to support gitremote-helpers connect

A bit tricky since Proto doesn't support threads. Rather than adding
threading support to it, ended up using a callback that waits for both
data on a Handle, and incoming messages at the same time.

This commit was sponsored by Denis Dzyubenko on Patreon.
Remote/Helper/P2P.hs
Utility/SimpleProtocol.hs