Fixed an issue where connections failed to be kept alive because of GZipInputStream and DeflaterInputStream not reading all the way to -1. Pure supputations, but it fits the symptoms and fixes the issue.