]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/net: throw read_eof if short read 39592/head
authorKefu Chai <kchai@redhat.com>
Sat, 20 Feb 2021 08:49:19 +0000 (16:49 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 20 Feb 2021 09:03:54 +0000 (17:03 +0800)
commit907aea748a8200bd7ae520e2bd6ac04c27fa62ee
treef897a5cacc613274ceb28367b8273af29d6a430a
parent4ced8d92433d79c4cea28c596c0f59788df5416b
crimson/net: throw read_eof if short read

as per the implementation and the document of input_stream::read_exactly():

/// stream and returns them. If the end of stream is reached before n
/// bytes were read, fewer than n bytes will be returned - so despite
/// the method's name, the caller must not assume the returned buffer
/// will always contain exactly n bytes.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/net/Socket.cc