AsynchronousSocketChannel: abortable operations throw RuntimeException
cowwoc at bbs.darktech.org
Thu Oct 14 17:28:00 PDT 2010
Alan Bateman wrote:
> In this API, it's only cancel(true) that may close the channel. The
> timeout support specified by AsynchronousSocketChannel is effectively
> like cancel(false) and does not close the channel. From your previous
> mail, I assumed were asking for a method to find out if cancel(false) or
> timeout can guarantee to cancel underlying I/O operations with a
> guarantee that the connection will be in consistent state (which
> suggests that were you looking for a way to continue to use the
> connection after cancellation, something the spec cannot guarantee).
Are you saying that it's impossible for any AsynchronousByteChannel
implementation to continue to use a connection after cancellation? Or were
your comments specific to AsynchronousSocketChannel?
Are you saying that no operating system supports this? Or are you saying
that some operating systems do not, hence we cannot guarantee it in a
View this message in context: http://nio-discuss.970641.n3.nabble.com/AsynchrnousSocketChannel-abortable-operations-throw-RuntimeException-tp1692482p1704917.html
Sent from the nio-discuss mailing list archive at Nabble.com.
More information about the nio-discuss