mozilla/rust — pull request #9089 by anasazi (2013-09-09 23:20:49+00:00)
Title: Fix Acceptor Iterator

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.