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.
instream()keeps looping through the chunks until the end of the buffer, even if the clamd services responds withINSTREAM size limit exceeded. ERRORhalfway through. The clamd service then closes the connection, andinstream()gets an I/O exception likeBrokenPipeErrorand never reaches the code that translatesINSTREAM size limit exceeded. ERRORmessage into aBufferTooLongErrorexception.