first, thanks to boost creators for these great libraries !
For my question...
I have an external TCP server, to which I connect thanks to a boost.asio
powered client.
I am using asynchronous operations, but i have an issue, I'd like to
trigger a *fast *client side deconnexion when the peer disappear (is
reset for example)
So far, the deconnexion occurs on an error on a asynchronous read
operation, but this error happens like 10-12 seconds after the physical
deconnexion occured.
Is there a way to set the "time out" value ? Is there another way to
detected that the peer vanished.
Regards,
Mathieu
_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
> I am using asynchronous operations, but i have an issue, I'd like to
> trigger a *fast *client side deconnexion when the peer disappear (is
> reset for example)
> So far, the deconnexion occurs on an error on a asynchronous read
> operation, but this error happens like 10-12 seconds after the physical
> deconnexion occured.
> Is there a way to set the "time out" value ? Is there another way to
> detected that the peer vanished.
i don't know about icmp protocol... does anyone have an example of doing
that with boost.Asio facility ?
regards,
Mathieu
--
http://www.incub.net/
> i don't know about icmp protocol... does anyone have an example of doing
> that with boost.Asio facility ?
>
m_ReceptionWatchDogTimer.expires_from_now(boost::posix_time::milliseconds(timeout));
with timeout >= 1000
is there a restriction for wait time less than one second ?
regards,
Mathieu
Igor R a écrit :
> I found an alternative solution using an asynchronous timer.
> However, it do works only if
>
> m_ReceptionWatchDogTimer.expires_from_now(boost::posix_time::milliseconds(timeout));
>
> with timeout >= 1000
>
> is there a restriction for wait time less than one second ?
>