Mercurial > dovecot > core-2.2
diff src/login-common/login-proxy.h @ 14162:ba06ea38c722
imap/pop3/lmtp proxy: Implemented detection of proxy loops with TTL.
If proxying tries to continue after 5 forward connections, it fails. The
limit of 5 is hard coded currently.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 25 Feb 2012 06:54:52 +0200 |
parents | da36d22ab37a |
children | fbb1ecb9b888 |
line wrap: on
line diff
--- a/src/login-common/login-proxy.h Sat Feb 25 06:41:59 2012 +0200 +++ b/src/login-common/login-proxy.h Sat Feb 25 06:54:52 2012 +0200 @@ -1,6 +1,13 @@ #ifndef LOGIN_PROXY_H #define LOGIN_PROXY_H +/* Max. number of embedded proxying connections until proxying fails. + This is intended to avoid an accidental configuration where two proxies + keep connecting to each others, both thinking the other one is supposed to + handle the user. This only works if both proxies support the Dovecot + TTL extension feature. */ +#define LOGIN_PROXY_TTL 5 + struct client; struct login_proxy;