egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

help with mysqltcl mod and long mysqlconnect timeouts

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
DayCuts
Voice


Joined: 15 Jun 2004
Posts: 37

PostPosted: Sat Apr 07, 2007 2:31 am    Post subject: help with mysqltcl mod and long mysqlconnect timeouts Reply with quote

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.
Back to top
View user's profile Send private message
asder--
Voice


Joined: 19 Aug 2011
Posts: 1

PostPosted: Fri Aug 19, 2011 8:45 pm    Post subject: Reply with quote

I got the same problem/question.

Anyone knows how to do this?

Thanks!
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat Aug 20, 2011 8:28 am    Post subject: Reply with quote

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, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber