summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-06-05 12:42:14 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-06-05 12:42:14 +0200
commit6e6f603f9351e64920ab5b4b71340347d3528f2f (patch)
tree6f7dc9325f70557b54c64f6198837ad805f7e3cf /bin
parent721ed5bb6a54b0aa817fcab9cae78a13e2d9f3f4 (diff)
downloadpykolab-6e6f603f9351e64920ab5b4b71340347d3528f2f.tar.gz
sys.exit(0) on timeout waiting for DATA request state, or logs will show the policy in error (#817)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/kolab_smtp_access_policy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/kolab_smtp_access_policy.py b/bin/kolab_smtp_access_policy.py
index 7e226d4..f2f7116 100755
--- a/bin/kolab_smtp_access_policy.py
+++ b/bin/kolab_smtp_access_policy.py
@@ -1253,7 +1253,7 @@ def read_request_input():
while not end_of_request:
if (time.time()-start_time) >= conf.timeout:
log.warning(_("Timeout for policy request reading exceeded"))
- sys.exit(1)
+ sys.exit(0)
request_line = sys.stdin.readline()
if request_line.strip() == '':