WIP: rc / rcd over unix socket

Rclone runs rclone serve restic over a stdin/stdout pipe. This runs http2 over that pipe so some code might be re-usable from there.

Your patch looks much less scary than I thought it would be!

I suggest open a new issue on Github with the above in it then we can work on a PR.

lib/atexit is the solution here

Note that there is actually two bits to httplib (refactor that never got finished grrr) so make sure both bits get done!

Fine.

I'd say probably not as that code is quite specialized to docker stuff. But then I don't know that code very well.

Isn't the socket location something the user provides? Or we make a default location in a flag?

You can already pass every flag as an env var - would this do?