1*d0cef73dSGregory Neil Shapiro<HTML> 2*d0cef73dSGregory Neil Shapiro<HEAD><TITLE>smfi_settimeout</TITLE></HEAD> 3*d0cef73dSGregory Neil Shapiro<BODY> 4e92d3f3fSGregory Neil Shapiro<!-- 5*d0cef73dSGregory Neil Shapiro$Id: smfi_settimeout.html,v 1.16 2013-11-22 20:51:39 ca Exp $ 6e92d3f3fSGregory Neil Shapiro--> 7*d0cef73dSGregory Neil Shapiro<H1>smfi_settimeout</H1> 840266059SGregory Neil Shapiro 9*d0cef73dSGregory Neil Shapiro<TABLE border="0" cellspacing=4 cellpadding=4> 1040266059SGregory Neil Shapiro<!---------- Synopsis -----------> 11*d0cef73dSGregory Neil Shapiro<TR><TH valign="top" align=left width=100>SYNOPSIS</TH><TD> 12*d0cef73dSGregory Neil Shapiro<PRE> 1340266059SGregory Neil Shapiro#include <libmilter/mfapi.h> 1440266059SGregory Neil Shapiroint smfi_settimeout( 1540266059SGregory Neil Shapiro int otimeout 1640266059SGregory Neil Shapiro); 17*d0cef73dSGregory Neil Shapiro</PRE> 18*d0cef73dSGregory Neil ShapiroSet the filter's I/O timeout value. 19*d0cef73dSGregory Neil Shapiro</TD></TR> 2040266059SGregory Neil Shapiro 2140266059SGregory Neil Shapiro<!----------- Description ----------> 22*d0cef73dSGregory Neil Shapiro<TR><TH valign="top" align=left>DESCRIPTION</TH><TD> 23*d0cef73dSGregory Neil Shapiro<TABLE border="1" cellspacing=1 cellpadding=4> 24*d0cef73dSGregory Neil Shapiro<TR align="left" valign=top> 25*d0cef73dSGregory Neil Shapiro<TH width="80">Called When</TH> 26*d0cef73dSGregory Neil Shapiro<TD>smfi_settimeout should only be called before <A href="smfi_main.html">smfi_main</A>.</TD> 27*d0cef73dSGregory Neil Shapiro</TR> 28*d0cef73dSGregory Neil Shapiro<TR align="left" valign=top> 29*d0cef73dSGregory Neil Shapiro<TH width="80">Effects</TH> 30*d0cef73dSGregory Neil Shapiro<TD>Sets the number of seconds libmilter will wait 31*d0cef73dSGregory Neil Shapirofor an MTA communication (read or write) before timing out. 3213bd1963SGregory Neil ShapiroIf smfi_settimeout is not called, a default timeout of 7210 seconds is used. 33*d0cef73dSGregory Neil Shapiro</TD> 34*d0cef73dSGregory Neil Shapiro</TR> 35*d0cef73dSGregory Neil Shapiro</TABLE> 3640266059SGregory Neil Shapiro</TD></TR> 3740266059SGregory Neil Shapiro 38*d0cef73dSGregory Neil Shapiro<!----------- Arguments ----------> 39*d0cef73dSGregory Neil Shapiro<TR><TH valign="top" align=left>ARGUMENTS</TH><TD> 40*d0cef73dSGregory Neil Shapiro <TABLE border="1" cellspacing=0> 41*d0cef73dSGregory Neil Shapiro <TR bgcolor="#dddddd"><TH>Argument</TH><TH>Description</TH></TR> 42*d0cef73dSGregory Neil Shapiro <TR valign="top"><TD>otimeout</TD> 43*d0cef73dSGregory Neil Shapiro <TD>The number of seconds to wait before timing out (> 0). 44*d0cef73dSGregory Neil Shapiro Zero means no wait, <B>not</B> "wait forever". 45*d0cef73dSGregory Neil Shapiro </TD></TR> 46*d0cef73dSGregory Neil Shapiro </TABLE> 4740266059SGregory Neil Shapiro</TD></TR> 4840266059SGregory Neil Shapiro 49*d0cef73dSGregory Neil Shapiro<!----------- Return values ----------> 50*d0cef73dSGregory Neil Shapiro<TR> 5140266059SGregory Neil Shapiro<TH valign="top" align=left>RETURN VALUES</TH> 52*d0cef73dSGregory Neil Shapiro 53*d0cef73dSGregory Neil Shapiro<TD>smfi_settimeout always returns MI_SUCCESS.</TD> 5440266059SGregory Neil Shapiro</TR> 55*d0cef73dSGregory Neil Shapiro 5640266059SGregory Neil Shapiro<!----------- Notes ----------> 57*d0cef73dSGregory Neil Shapiro<TR> 58*d0cef73dSGregory Neil Shapiro<TH valign="top" align=left>NOTES</TH> 59*d0cef73dSGregory Neil Shapiro<TD> 6040266059SGregory Neil ShapiroDecreasing the timeout is strongly discouraged 61*d0cef73dSGregory Neil Shapiroand may break the communication with the MTA. 6240266059SGregory Neil ShapiroDo <EM>not</EM> decrease this value without making sure that 635ef517c0SGregory Neil Shapirothe MTA also uses lower timeouts for communication 64*d0cef73dSGregory Neil Shapiro(with the milter and with the SMTP client). 65*d0cef73dSGregory Neil Shapiro</TD></TR> 66*d0cef73dSGregory Neil Shapiro</TABLE> 67 68<HR size="1"> 69<FONT size="-1"> 70Copyright (c) 2000, 2002-2003, 2006, 2011 Proofpoint, Inc. and its suppliers. 71All rights reserved. 72<BR> 73By using this file, you agree to the terms and conditions set 74forth in the LICENSE. 75</FONT> 76</BODY> 77</HTML> 78