Hi, Guus I noticed th default reconnect for the first time is 5s, if failed the timer will be increase, I would like to know if this timer can be adjusted? The Max Timeout you mentioned seems not exactly the one, from the description below, it looks to me it is the total time for connect to be re-established, if not it trying other tinc daemon? Different tinc deamons have nothing related to each other, why try other daemon? MaxTimeout = <seconds> (900) This is the maximum delay before trying to reconnect to other tinc daemons. Guus Sliepen <guus at tinc-vpn.org>于2017年8月12日 周六下午2:41写道:> On Thu, Aug 10, 2017 at 09:37:13PM +0800, Bright Zhao wrote: > > > When the meta connection get lost, it’ll be reconnect like below: > > Trying to re-establish outgoing connection in 5 seconds, and if it’s > failed, then the timer will be increased for another try. > > > > My question is, how to adjust the reconnect timer, in some cases, the > reconnect delay for a while(increase to something longer) will be > beneficial for the unstable connection. > > You can set the maximum time that tinc will wait before reconnecting > by setting the MaxTimeout option in tinc.conf. The default is 300 > seconds. > > -- > Met vriendelijke groet / with kind regards, > Guus Sliepen <guus at tinc-vpn.org> > _______________________________________________ > tinc mailing list > tinc at tinc-vpn.org > https://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc >-- Sent from iPhone -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20170812/d20aa5a2/attachment.html>
On Sat, Aug 12, 2017 at 09:17:10AM +0000, Bright Zhao wrote:> I noticed th default reconnect for the first time is 5s, if failed the > timer will be increase, I would like to know if this timer can be adjusted?No, this cannot be adjusted.> The Max Timeout you mentioned seems not exactly the one, from the > description below, it looks to me it is the total time for connect to be > re-established, if not it trying other tinc daemon? Different tinc deamons > have nothing related to each other, why try other daemon?Timeouts are handled separately for each ConnectTo. So if you have multiple ConnectTo's, they will all be tried in parallel, and each has its own timeout that starts at 5 seconds, gets incremented by 5 every time it fails, but it will never increase it beyond MaxTimeout. So if you have a connection to A that is failing, and after a while the timeout for it is 300 seconds, and if a working connection to B suddenly fails, then tinc will try to reconnect to B after 5 seconds. -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20170812/a1af68e8/attachment.sig>
Thanks.>From the document, the default looks 900s.And let's say tinc connected to A, B, C; What if the connection to A failed(To B and C are fine), and tried many times until the last try which wait the Max Timeout, then tinc will not try again to connect A, right?(And when the Max Timeout for connection to A will be reset?) Guus Sliepen <guus at tinc-vpn.org>于2017年8月12日 周六下午5:39写道:> On Sat, Aug 12, 2017 at 09:17:10AM +0000, Bright Zhao wrote: > > > I noticed th default reconnect for the first time is 5s, if failed the > > timer will be increase, I would like to know if this timer can be > adjusted? > > No, this cannot be adjusted. > > > The Max Timeout you mentioned seems not exactly the one, from the > > description below, it looks to me it is the total time for connect to be > > re-established, if not it trying other tinc daemon? Different tinc > deamons > > have nothing related to each other, why try other daemon? > > Timeouts are handled separately for each ConnectTo. So if you have > multiple ConnectTo's, they will all be tried in parallel, and each has > its own timeout that starts at 5 seconds, gets incremented by 5 every > time it fails, but it will never increase it beyond MaxTimeout. > > So if you have a connection to A that is failing, and after a while the > timeout for it is 300 seconds, and if a working connection to B > suddenly fails, then tinc will try to reconnect to B after 5 seconds. > > -- > Met vriendelijke groet / with kind regards, > Guus Sliepen <guus at tinc-vpn.org> > _______________________________________________ > tinc mailing list > tinc at tinc-vpn.org > https://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc >-- Sent from iPhone -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20170812/08946df3/attachment-0001.html>