facebook/hhvm — pull request #2420 by apuckey (2014-04-11 05:40:45+00:00)
Title: Fix for when FCGI_ABORT_REQUEST is sent.

This was returning the size of the initial request on abort instead of the bytes left after parsing causing it to try to read further into the buffer than was available.

avail will equal available minus what was already read.

Closes #2240