netty/netty — pull request #545 by jaens (2012-08-21 12:33:20+00:00)
Title: Do not write compressed SPDY frames out-of-band in another thread

The fix in #448 introduces another, even more sinister bug.

Since uncompressed frames and compressed frames from a single originating thread are eventually written from different threads, there is a race condition between sending eg. a SpdySynReplyFrame and SpdyDataFrame, meaning frames can get re-ordered and written to a stream before it is "open", violating the SPDY spec.

(this actually happens with my production code)