You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Florian Weimer <fw...@deneb.enyo.de> on 2006/07/15 21:15:22 UTC

Re: RI's bug of Socket.getOutputStream().write(byte[]) ?

* Tim Ellison:

>> Hmm, I think I was wrong.  The scenario I had on mind can only occur
>> if the client also sends some data which is still in transit when the
>> server closes the connection.  In this case, the server sends an RST
>> when that data arrives, and some clients discard all pending the data
>> they receive the RST.
>
> Yes, of course, but in this case the sender is doing the close(), so
> reading until -1 should be safe, right?

Yes, the important point is that the client does not send any data.

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org