bug in network.c:error_or_eof()
error_or_eof() is currently setting the callbacks of conn->output statically, instead of setting the callbacks of the bufferevent to be flushed dynamically.
I'm not sure if it's a bug because I suck in libevent so I'm making this trac ticket.
You can find the uber trivial fix in my bug_error_or_eof branch (sorry for the non-bugxxxx name)