httpinfo: do not close an 'error' socket return value