On 9/14/07, UI Implementor <[EMAIL PROTECTED]> wrote:
>
> Tristan,

Trustin :)

> I'm in agreement with the original poster -- in fact, I found this
> conversation by searching for "mina connect cancel", because I wanted to
> know how to programmatically cancel a connection without waiting for a
> timeout.  Being able to cancel at will turns out to be extremely useful when
> building a client with a user interface.  For example, when you use a
> browser and you type the wrong address, you can always hit the "stop" button
> and try something else.  Or if it's taking a while to connect and you're not
> willing to wait for the timeout, since you have good reason to believe that
> the site may be down, you hit "stop".  I'd like to provide the same feature
> in my user interface.  I can do it, in a sense, by telling the user that the
> connection has been canceled, while maintaining my own separate thread
> waiting for the connection to be completed; when it's completed, I can then
> immediately kill it.  But it's a shame I can't just kill the connection
> attempt immediately and be done with it at that point.  If the user doesn't
> want the connection anymore, he or she should be able to kill it.
>
> In summary, a cancel() method in ConnectFuture would be a huge help.

I agree with you.  cancel() had to exist from the day 0.

> Thanks!  MINA is really a great project; it's made a big difference in my
> productivity.

Glad to hear that!  We also appreciate your feed back, which will
improve MINA one step forward.

Thanks,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Reply via email to