Stop gracefully
rcrowley opened this issue · comments
This will make integration with goagain
easier.
Until https://code.google.com/p/go/issues/detail?id=4674, this will require an epic amount of copypasta from net/http
which might not be worth it.
http://play.golang.org/p/x1Cai1qBTc is also related but incomplete.
https://codereview.appspot.com/7273049/ is the proposed fix for https://code.google.com/p/go/issues/detail?id=4674.
Since the standard library is going to make this easier and in the meantime we can listener.Close()
and time.Sleep
if we really care, I'm going to let this wait.