X-czh commented on issue #2204: URL: https://github.com/apache/fury/issues/2204#issuecomment-2853528840
Typically outer logic will call [ObjectInputStream#read](https://github.com/openjdk/jdk/blob/e09d2e275bc646201a8da39bd4b977d3fda97954/src/java.base/share/classes/java/io/InputStream.java#L283) in a while loop until reading enough bytes. Returning 0 will leave the loop stuck forever. Therefore, we should make it never return len 0 by force refilling the buffer when remaining = 0. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
