mysql_connect_timeout problem when using times less than 1 sec
- From: duncan.wren@xxxxxxxxx (Duncan Wren)
- Date: Sat, 23 Sep 2006 17:02:46 +0100
The DBI module when connecting to a mysql database seams to only support
integer values for the mysql_connect_timeout if you use say 0.5 secs as the
timeout value it defaults to 3secs. Does anyone know a way round this
problem as i need a very short timeout in my application.
for example
#does not work and defaults to 3 secs timeout
$dbh = DBI->connect("DBI:mysql:db_name:db_host:3306;mysql_connect_timeout=
0.5","username","password");
#does work and timesout after 1 sec
$dbh =
DBI->connect("DBI:mysql:db_name:db_host:3306;mysql_connect_timeout=1","username","password");
Thanks
Duncan
- Follow-Ups:
- Re: mysql_connect_timeout problem when using times less than 1 sec
- From: Alexander Foken
- Re: mysql_connect_timeout problem when using times less than 1 sec
- Prev by Date: Statement Handle still Active
- Next by Date: Re: Statement Handle still Active
- Previous by thread: Statement Handle still Active
- Next by thread: Re: mysql_connect_timeout problem when using times less than 1 sec
- Index(es):
Relevant Pages
|
|