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:52 +0200
commit068e7de5d33d024c01d43fcee2e92c629f68ec1d (patch)
tree5e671a7c112040a518ed69cfcb804f7f739e276b /bin
parent03881f27a5917378add8b0c4b98a91e38c7e2529 (diff)
downloadpykolab-068e7de5d33d024c01d43fcee2e92c629f68ec1d.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() == '':