On Tuesday 30 October 2007 18:19:33 Douglas Garstang wrote: > Anyone know if the MySQL() application has a configurable timeout?
It does not. > If it tries to connect to a bogus IP, it's timeout seems to be a few > minutes. I'd like to cut it down to a few seconds. The key would be adding this line at the appropriate point: mysql_options(&mysql, MYSQL_OPT_CONNECT_TIMEOUT, &timeout) where timeout is an integer. Remember that it needs to be set BEFORE the connection. -- Tilghman _______________________________________________ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
