zedshaw/mongrel2 — pull request #136 by jsimmons (2012-05-29 09:01:13+00:00)
Title: Feature/connection fix

Also remove a broken test, this should probably be replaced.

Problem was that Connection_enqueue adds a bstring to its queue, then returns 0 for success. The caller then makes a silly check for number of bytes written which seems to be left over from previous changes. Since that will fail it jumps straight into the error label which frees the bstring. Later on when the task runs it tries to use said freed bstring.