instream() keeps looping through the chunks until the end of the buffer, even if the clamd services responds with INSTREAM size limit exceeded. ERROR halfway through. The clamd service then closes the connection, and instream() gets an I/O exception like BrokenPipeError and never reaches the code that translates INSTREAM size limit exceeded. ERROR message into a BufferTooLongError exception.