2 <HEAD><TITLE>smfi_settimeout</TITLE></HEAD>
5 $Id: smfi_settimeout.html,v 1.16 2013-11-22 20:51:39 ca Exp $
7 <H1>smfi_settimeout</H1>
9 <TABLE border="0" cellspacing=4 cellpadding=4>
10 <!---------- Synopsis ----------->
11 <TR><TH valign="top" align=left width=100>SYNOPSIS</TH><TD>
13 #include <libmilter/mfapi.h>
18 Set the filter's I/O timeout value.
21 <!----------- Description ---------->
22 <TR><TH valign="top" align=left>DESCRIPTION</TH><TD>
23 <TABLE border="1" cellspacing=1 cellpadding=4>
24 <TR align="left" valign=top>
25 <TH width="80">Called When</TH>
26 <TD>smfi_settimeout should only be called before <A href="smfi_main.html">smfi_main</A>.</TD>
28 <TR align="left" valign=top>
29 <TH width="80">Effects</TH>
30 <TD>Sets the number of seconds libmilter will wait
31 for an MTA communication (read or write) before timing out.
32 If smfi_settimeout is not called, a default timeout of 7210 seconds is used.
37 <!----------- Arguments ---------->
38 <TR><TH valign="top" align=left>ARGUMENTS</TH><TD>
39 <TABLE border="1" cellspacing=0>
40 <TR bgcolor="#dddddd"><TH>Argument</TH><TH>Description</TH></TR>
41 <TR valign="top"><TD>otimeout</TD>
42 <TD>The number of seconds to wait before timing out (> 0).
43 Zero means no wait, <B>not</B> "wait forever".
48 <!----------- Return values ---------->
50 <TH valign="top" align=left>RETURN VALUES</TH>
52 <TD>smfi_settimeout always returns MI_SUCCESS.</TD>
55 <!----------- Notes ---------->
57 <TH valign="top" align=left>NOTES</TH>
59 Decreasing the timeout is strongly discouraged
60 and may break the communication with the MTA.
61 Do <EM>not</EM> decrease this value without making sure that
62 the MTA also uses lower timeouts for communication
63 (with the milter and with the SMTP client).
72 Copyright (c) 2000, 2002-2003, 2006, 2011 Proofpoint, Inc. and its suppliers.
75 By using this file, you agree to the terms and conditions set