one minor optimization in ngx.req.socket().