Hi All,

I've got a client, written in C++, that connects to a MySQL (5.x) DB. I need keep my connection open for a long time (right now hours, but possibly days in the future). But I need this client and only this client to maintain the connection for a long time. All my other clients need to timeout after 60 seconds (already set on the DB). I create my client and set my connect timeout value using both the set options calls and by specifiying it in the connect call. However, my connections timeout within a few seconds. I know they timeout because I call mysql_ping right before I use the connection. It always returns 1. How can I set my timeout to a really high number?

Thanks.

-Brian

--------------------
Brian E Campbell
[EMAIL PROTECTED]



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to