dominictarr/mux-demux — pull request #6 by Raynos (2012-08-09 08:30:34+00:00)
Title: Allow extra close event to come through

Scenario:

Server has the stream closed already but because the browser was
disconnected due to flaky connection and buffered up it's close command the
server get's a close command from the client after it's closed that stream.

I think this is a race condition.

Playing with taking [the service example up and down with multiple browsers][1]
reproduces this issue.

[1]: https://github.com/Raynos/seaport-proxy/tree/master/examples/service