Author: wyoung
Date: Tue Sep 28 20:12:10 2010
New Revision: 2678
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2678&view=rev
Log:
Replaced recommendation in userman tutorial chapter to use
ConnectTimeoutOption to cope with connection timeouts with info on using
ReconnectOption instead. ConnectTimeoutOption controls the connect()
timeout, not the connection idle timeout. Automatic reconnection is a
better way to handle it anyway.
Modified:
trunk/doc/userman/tutorial.dbx
Modified: trunk/doc/userman/tutorial.dbx
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/doc/userman/tutorial.dbx?rev=2678&r1=2677&r2=2678&view=diff
==============================================================================
--- trunk/doc/userman/tutorial.dbx (original)
+++ trunk/doc/userman/tutorial.dbx Tue Sep 28 20:12:10 2010
@@ -1254,10 +1254,19 @@
to allow for a little bit of additional idle time on either end
of that period.</para>
- <para>Alternately, you can change this parameter on a
- per-connection basis by using MySQL++’s <ulink
- type="classref" url="ConnectTimeoutOption"/> <link
- linkend="connopts">connection option</link>.</para>
+ <para>Another way around this, on a per-connection basis from
+ the client side, would be to set the <ulink type="classref"
+ url="ReconnectOption"/> <link linkend="connopts">connection
+ option</link>. This will cause MySQL++ to reconnect to the server
+ automatically if it drops the connection. Beware that unless
+ you’re using MySQL 5.1.6 or higher, you have to set this
+ only after the connection is established, or it won’t take
+ effect. This means there’s a potential race condition:
+ it’s possible the connection could drop shortly enough
+ after being established that you don’t have time to apply
+ the option, so it won’t come back up automatically. MySQL
+ 5.1.6+ fixes this by allowing this option to be set before the
+ connection is established.</para>
<para>A completely different way to tackle this, if your program
doesn’t block forever waiting on I/O while idle, is to
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits