]> git.lizzy.rs Git - rust.git/commit
Don't wait for a full buffer when reading TCP
authorAlex Crichton <alex@alexcrichton.com>
Mon, 6 Jan 2014 06:16:16 +0000 (22:16 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 6 Jan 2014 08:08:18 +0000 (00:08 -0800)
commit11e568c886ce1ced558dc638065f938ea3dee973
treeccb43f4a53a8a4eddd2db174def928e483829727
parenta6d3e57dca68fde4effdda3e4ae2887aa535fcd6
Don't wait for a full buffer when reading TCP

libnative erroneously would attempt to fill the entire buffer in a call to
`read` before returning, when rather it should return immediately because
there's not guaranteed to be any data that will ever be received again.

Close #11328
src/libnative/io/net.rs
src/libstd/io/net/tcp.rs