Hello Julien,
> The server itself is the dumbest http server you can make. A class that
> listens to a port and spawns threads to handle the incoming connections.
>
> while ( (totalCount < contentLength) && ((count =
> inputStream.read(buffer)) > 0) && (! this.kill) ) {
>
> /**** the program hangs here until timeout then it throws: ****/
Don't rely on the content length sent by a server. In particular not
if it's a handcrafted dumb server that is most likely to screw up.
Read to the end of the stream.
cheers,
Roland
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]