This code and the code below isn't still there in current `master` or `trunk-tracking`.  It was removed in ad6429d2 which added IPRO support.  In the current version I can't tell where we're closing the pipe on the nginx side.