hmm, thinking a bit more, this can probably also fail if the connection was reset by peer in the meantime; not so sure anymore