1168515Sgshapiro<HTML>
2168515Sgshapiro<HEAD><TITLE>smfi_settimeout</TITLE></HEAD>
3168515Sgshapiro<BODY>
4132943Sgshapiro<!--
5266527Sgshapiro$Id: smfi_settimeout.html,v 1.16 2013-11-22 20:51:39 ca Exp $
6132943Sgshapiro-->
7168515Sgshapiro<H1>smfi_settimeout</H1>
890792Sgshapiro
9168515Sgshapiro<TABLE border="0" cellspacing=4 cellpadding=4>
1090792Sgshapiro<!---------- Synopsis ----------->
11168515Sgshapiro<TR><TH valign="top" align=left width=100>SYNOPSIS</TH><TD>
12168515Sgshapiro<PRE>
1390792Sgshapiro#include &lt;libmilter/mfapi.h&gt;
1490792Sgshapiroint smfi_settimeout(
1590792Sgshapiro	int otimeout
1690792Sgshapiro);
17168515Sgshapiro</PRE>
18168515SgshapiroSet the filter's I/O timeout value.
19168515Sgshapiro</TD></TR>
2090792Sgshapiro
2190792Sgshapiro<!----------- Description ---------->
22168515Sgshapiro<TR><TH valign="top" align=left>DESCRIPTION</TH><TD>
23168515Sgshapiro<TABLE border="1" cellspacing=1 cellpadding=4>
24168515Sgshapiro<TR align="left" valign=top>
25168515Sgshapiro<TH width="80">Called When</TH>
26168515Sgshapiro<TD>smfi_settimeout should only be called before <A href="smfi_main.html">smfi_main</A>.</TD>
27168515Sgshapiro</TR>
28168515Sgshapiro<TR align="left" valign=top>
29168515Sgshapiro<TH width="80">Effects</TH>
30168515Sgshapiro<TD>Sets the number of seconds libmilter will wait
31168515Sgshapirofor an MTA communication (read or write) before timing out.
32110560SgshapiroIf smfi_settimeout is not called, a default timeout of 7210 seconds is used.
33168515Sgshapiro</TD>
34168515Sgshapiro</TR>
35168515Sgshapiro</TABLE>
3690792Sgshapiro
3790792Sgshapiro<!----------- Arguments ---------->
38168515Sgshapiro<TR><TH valign="top" align=left>ARGUMENTS</TH><TD>
39168515Sgshapiro    <TABLE border="1" cellspacing=0>
40168515Sgshapiro    <TR bgcolor="#dddddd"><TH>Argument</TH><TH>Description</TH></TR>
41168515Sgshapiro    <TR valign="top"><TD>otimeout</TD>
42168515Sgshapiro	<TD>The number of seconds to wait before timing out (&gt; 0).
43168515Sgshapiro	Zero means no wait, <B>not</B> "wait forever".
44168515Sgshapiro	</TD></TR>
45168515Sgshapiro    </TABLE>
46168515Sgshapiro</TD></TR>
4790792Sgshapiro
4890792Sgshapiro<!----------- Return values ---------->
49168515Sgshapiro<TR>
50168515Sgshapiro<TH valign="top" align=left>RETURN VALUES</TH> 
5190792Sgshapiro
52168515Sgshapiro<TD>smfi_settimeout always returns MI_SUCCESS.</TD>
53168515Sgshapiro</TR>
5490792Sgshapiro
55244833Sgshapiro<!----------- Notes ---------->
56244833Sgshapiro<TR>
57244833Sgshapiro<TH valign="top" align=left>NOTES</TH> 
58244833Sgshapiro<TD>
59244833SgshapiroDecreasing the timeout is strongly discouraged
60244833Sgshapiroand may break the communication with the MTA.
61244833SgshapiroDo <EM>not</EM> decrease this value without making sure that
62244833Sgshapirothe MTA also uses lower timeouts for communication
63244833Sgshapiro(with the milter and with the SMTP client).
64244833Sgshapiro</TR>
65168515Sgshapiro</TABLE>
6690792Sgshapiro
67244833Sgshapiro
68244833Sgshapiro</TABLE>
69244833Sgshapiro
70168515Sgshapiro<HR size="1">
71168515Sgshapiro<FONT size="-1">
72261194SgshapiroCopyright (c) 2000, 2002-2003, 2006, 2011 Proofpoint, Inc. and its suppliers.
7390792SgshapiroAll rights reserved.
74168515Sgshapiro<BR>
7590792SgshapiroBy using this file, you agree to the terms and conditions set
76112810Sgshapiroforth in the LICENSE.
77168515Sgshapiro</FONT>
78168515Sgshapiro</BODY>
79168515Sgshapiro</HTML>
80