Various fixes and refactorings to ensure that the incoming stream always gets read completely (we missed some corner cases in a previous attempt to fix this).

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1346770 13f79535-47bb-0310-9956-ffa450edef68
4 files changed