rust/src/libstd/comm
bors b36340b626 auto merge of #12302 : alexcrichton/rust/issue-12295, r=brson
The previous code erroneously assumed that 'steals > cnt' was always true, but
that was a false assumption. The code was altered to decrement steals to a
minimum of 0 instead of taking all of cnt into account.

I didn't include the exact test from #12295 because it could run for quite
awhile, and instead set the threshold for MAX_STEALS to much lower during
testing. I found that this triggered the old bug quite frequently when running
without this fix.

Closes #12295
2014-02-15 23:36:26 -08:00
..
mod.rs Fix all code examples 2014-02-14 23:49:22 -08:00
oneshot.rs Test fixes and rebase conflicts 2014-02-11 19:58:44 -08:00
select.rs Rebase conflicts from this giant stack of patches 2014-02-13 13:33:46 -08:00
shared.rs auto merge of #12302 : alexcrichton/rust/issue-12295, r=brson 2014-02-15 23:36:26 -08:00
stream.rs Correctly reset steals when hitting MAX_STEALS 2014-02-15 15:54:29 -08:00