about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-09-09 16:26:03 -0700
committerbors <bors@rust-lang.org>2013-09-09 16:26:03 -0700
commitd41b5587927da19fbde2cd28e615b3bdb8ad6e01 (patch)
tree3fb0af4ec5de8c02760d1148a77c67ccac68b16a /src/libsyntax
parented695d470bf1568b896f2944815f4723905ab66e (diff)
parent8f0721bcb86c0aa236991118d65639cc4f2f8ea4 (diff)
downloadrust-d41b5587927da19fbde2cd28e615b3bdb8ad6e01.tar.gz
rust-d41b5587927da19fbde2cd28e615b3bdb8ad6e01.zip
auto merge of #9089 : anasazi/rust/fix-acceptor-iterator, r=cmr
The iterator over incoming connections has no natural end, so it should always return Some(_).
Currently, if an incoming connection fails, the iterator returns None.
Trying to accept another connection afterwards enters the realm of undefined behavior (due to the iterator protocol being silent on the issue).

This PR changes wraps the underlying accept call in Some, so the iterator never finishes.
Diffstat (limited to 'src/libsyntax')
0 files changed, 0 insertions, 0 deletions