[Vortex] How to check if conneciton can be closed?
Francis Brosnan Blazquez
francis at aspl.es
Mon May 5 19:53:32 CEST 2008
Hi Robert,
In short, you can't. Let's assume you have some function doing what you
propose. Even in such case there is a race condition between the call
you do to this function and the next call to vortex_connection_close,
where the remote peer could send you a message, causing
vortex_connection_close to fail.
You have to design your BEEP profile having this in mind to avoid
issues.
Cheers!
> Hi, subject says is all ;-). Background: I want to avoid that my
> clients
> calls "vortex_connection_shutdown" / "vortex_connection_close"
> during
> on-going transfers.
PS: You can't avoid a remote BEEP peer to call
vortex_connection_shutdown. However, vortex_connection_close is another
history. Just deny channel close request received during the transfer.
> How can I check if the connection is "silent" on all
> channels?
>
> Is "vortex_get_prending_msgs" the right function? Robert
--
Francis Brosnan Blazquez <francis at aspl.es>
Advanced Software Production Line, S.L.
More information about the Vortex
mailing list