1<?xml version="1.0" encoding="UTF-8" standalone="no"?> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3<html xmlns="http://www.w3.org/1999/xhtml"> 4 <head> 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 6 <title>Managing Connection Retries</title> 7 <link rel="stylesheet" href="gettingStarted.css" type="text/css" /> 8 <meta name="generator" content="DocBook XSL Stylesheets V1.62.4" /> 9 <link rel="home" href="index.html" title="Getting Started with Replicated Berkeley DB Applications" /> 10 <link rel="up" href="repapp.html" title="Chapter 3. The DB Replication Framework" /> 11 <link rel="previous" href="electiontimes.html" title="Managing Election Times" /> 12 <link rel="next" href="heartbeats.html" title="Managing Heartbeats" /> 13 </head> 14 <body> 15 <div class="navheader"> 16 <table width="100%" summary="Navigation header"> 17 <tr> 18 <th colspan="3" align="center">Managing Connection Retries</th> 19 </tr> 20 <tr> 21 <td width="20%" align="left"><a accesskey="p" href="electiontimes.html">Prev</a> </td> 22 <th width="60%" align="center">Chapter 3. The DB Replication Framework</th> 23 <td width="20%" align="right"> <a accesskey="n" href="heartbeats.html">Next</a></td> 24 </tr> 25 </table> 26 <hr /> 27 </div> 28 <div class="sect1" lang="en" xml:lang="en"> 29 <div class="titlepage"> 30 <div> 31 <div> 32 <h2 class="title" style="clear: both"><a id="fmwrkconnectretry"></a>Managing Connection Retries</h2> 33 </div> 34 </div> 35 <div></div> 36 </div> 37 <p> 38 In the event that a communication failure occurs between 39 two environments in a replication group, the replication framework will wait a set 40 amount of time before attempting to re-establish the 41 connection. You can configure this wait value using 42 43 <span> 44 45 <span><tt class="methodname">DbEnv::rep_set_timeout()</tt>.</span> 46 To do so, specify the 47 <tt class="literal">DB_REP_CONNECTION_RETRY</tt> 48 flag to the <tt class="literal">which</tt> parameter and then a 49 retry value in microseconds to the 50 <tt class="literal">timeout</tt> parameter. 51 </span> 52 53 54 </p> 55 </div> 56 <div class="navfooter"> 57 <hr /> 58 <table width="100%" summary="Navigation footer"> 59 <tr> 60 <td width="40%" align="left"><a accesskey="p" href="electiontimes.html">Prev</a> </td> 61 <td width="20%" align="center"> 62 <a accesskey="u" href="repapp.html">Up</a> 63 </td> 64 <td width="40%" align="right"> <a accesskey="n" href="heartbeats.html">Next</a></td> 65 </tr> 66 <tr> 67 <td width="40%" align="left" valign="top">Managing Election Times </td> 68 <td width="20%" align="center"> 69 <a accesskey="h" href="index.html">Home</a> 70 </td> 71 <td width="40%" align="right" valign="top"> Managing Heartbeats</td> 72 </tr> 73 </table> 74 </div> 75 </body> 76</html> 77