forum.vmspython.org Forum Index forum.vmspython.org
Forum system
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problems setting the connect_timeout

 
Post new topic   Reply to topic    forum.vmspython.org Forum Index -> MySQL for OpenVMS
View previous topic :: View next topic  
Author Message
tadamsmar



Joined: 28 Dec 2009
Posts: 6

PostPosted: Fri Jan 15, 2010 7:07 pm    Post subject: Problems setting the connect_timeout Reply with quote

I am trying to set the connection timeout to 5 seconds with no luck.
Here my code (without the real net address). The real_connect call still hangs for much more than 5 seconds when I disconnect the target device from the net to cause a timeout.


unsigned int tmo = 5;
.
.
.
lclsts = mysql_options(mysql,MYSQL_OPT_CONNECT_TIMEOUT,&tmo);
if (lclsts == 0)
{
mysql=mysql_real_connect(mysql,"1.1.1.1","usr",0,"dichot",3306,0,0);
Back to top
View user's profile Send private message
jfp



Joined: 12 Jul 2004
Posts: 618

PostPosted: Sun Jan 17, 2010 10:32 am    Post subject: Reply with quote

You're correct, tis is a old problem.
Take a look at the note:
http://www.pi-net.dyndns.org/piforum/viewtopic.php?t=95

We will try to take a look at this problem.

Sorry.

JFP
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vmspython.org Forum Index -> MySQL for OpenVMS All times are GMT + 2 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


Powered by phpBB © 2001, 2005 phpBB Group