AsynchronousCharChannel

Gili cowwoc at bbs.darktech.org
Thu Jul 2 14:20:17 PDT 2009


Alan Bateman (via Nabble) wrote:
> I haven't had a chance to look at this in any detail but I wonder if you
> really need write(... boolean endOfInput)? That is, do you really need
> the equivalent of a half-close (as in TCP) or isn't close sufficient?

	Actually, I just realized... what happens if the last write() triggers 
a flush() that just so happens to trigger the remote end sending bytes 
back? If close() means flushes the output, then the receiving end never 
has a chance of picking up those last incoming bytes. Is this a 
reasonable use-case?

Thanks,
Gili

-- 
View this message in context: http://n2.nabble.com/AsynchronousCharChannel-tp3156277p3197865.html
Sent from the nio-discuss mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-discuss/attachments/20090702/02224602/attachment.html 


More information about the nio-discuss mailing list