Try to avoid "502: Blank server response." when server closed connection

but client connection still alive.