This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

help with mysqltcl mod and long mysqlconnect timeouts

Help for those learning Tcl or writing their own scripts.
Post Reply
D
DayCuts
Voice
Posts: 37
Joined: Tue Jun 15, 2004 8:43 am

help with mysqltcl mod and long mysqlconnect timeouts

Post by DayCuts »

The problem is basically that if i write a script that uses mysqltcl, and there is at any point a problem connecting to the mysqld (maybe its ip changed for example), there is a rather large timeout period (about 3 minutes) before throws the tcl error (or moves on/logs if im using catch).

My query is, how do i reduce this timeout period, if at all possible. Any solution need not be related directly to eggdrop or mysqltcl. Although that would be prefered (if there is a way), any solution within the linux dist, tcllib, eggdrop, mysqltcl, etc would be greatly appreciated.

TIA.
a
asder--
Voice
Posts: 1
Joined: Fri Aug 19, 2011 8:43 pm

Post by asder-- »

I got the same problem/question.

Anyone knows how to do this?

Thanks!
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

myslqtcl does not permit you to pass any timeout-options directly, however, the ::mysql::connect command does read the my.cnf-file for options in the mysqltcl group. This suggests that you might be able to use the connect-timeout option there, though I have not tested this myself.
NML_375
Post Reply