error: transfer closed with outstanding read data remaining