HttpClient throws TruncatedChunkException accessing large chunked resource
OK, I found out what I'd done. I'd cleaned up my connection too early - basically the boilerplate in my connection method had a
finally{ client.getConnectionManager().shutdown();}
but the method returned the stream object, so reading wasn't completed when the shutdown occurred.