You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Nick Coleman <ni...@leanlogistics.com> on 2003/02/08 18:32:48 UTC

RE: DO NOT REPLY [Bug 16904] - Input Stream closed, Output Stre am valid, no detection by socket

Thank you for the directions for how to submit this problem...  Attached are
the file I created.

> Feedback to your patch:
> It will buffer the whole response which is not good. Imagine a 1GB
response. You would not want this to be buffered, would you.

By using the Piped Streams I have limited the buffer size haven't I?

>thread.interrupt() does not kill a thread. It only sets the interrupted
flag. You are not checking for this flag. So the >interrupt call will stay
unnoticed.

You're right about this, but at some point the input stream will be closed
and thread will exit. (It's definitely not the most elegant way...

I'll try to work on a test case in the meantime.