allow async output on the most recent request

Keeps track of the most recent request, so async output is still allowed
Merge pull request #5668 from minrk/async-output

allow async output on the most recent request