refactor: httpError to write error to socket
stop on EOF for https tunneling
better logging for copyAndClose, on CONNECT accept