harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Ellison <t.p.elli...@gmail.com>
Subject Re: RI's bug of Socket.getOutputStream().write(byte[]) ?
Date Mon, 26 Jun 2006 09:39:02 GMT
Florian Weimer wrote:
> * Tim Ellison:
> 
>> Thanks Florian, I need to go back and read Steven's more closely ;-) .
>> I have no doubt you are correct, but have never seen a close overtake
>> the data -- we should of course do it right.
> 
> 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?

Regards,
Tim

-- 

Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

---------------------------------------------------------------------
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


Mime
View raw message