[2.3.x] Minor doc/variable name tweak.
[2.3.x] + we don't need this reference
[2.3.x] + flush the output stream