Fix chunking performance problem
Fix potential race condition
Fix race condition, and make sure listener cannot enter infinite loop
Fix some issues with flow control interacting badly with the final frame
Increase the max loop amount
Prevent possible wakeup loop
Make sure the underlying channel is flushed
Added some convience methods to routing handler.  Handle an edge case for 405.
Improve performance