What does it mean when a ByteInputStream keeps returning 0?

Posted by Zombies on Stack Overflow See other posts from Stack Overflow or by Zombies
Published on 2010-06-08T15:29:03Z Indexed on 2010/06/08 15:32 UTC
Read the original article Hit count: 148

Filed under:
|
|

I have a ByteInputStream, created from a Socket in Java. The connection is to a simple web server that uses chunked transfer encoding. The web server does in fact work in normal browser. But in my program, I am attempting to read, I read the first first bytes (some 5kb of data). But each read after that returns 0 bytes read. Isn't it supposed to block until it can read?

© Stack Overflow or respective owner

Related posts about java

Related posts about http