Fix server/client connection pair over HTTP, close #2158