Skip to content

Commit ab36908

Browse files
committed
Add KEEPALIVE
1 parent 00f496f commit ab36908

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

contrib/mmts/arbiter.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ static int MtmConnectSocket(char const* host, int port, int max_attempts)
269269
int optval = 1;
270270
MtmArbiterMessage msg;
271271
setsockopt(sd, IPPROTO_TCP, TCP_NODELAY, (char const*)&optval, sizeof(optval));
272+
setsockopt(sd, SOL_SOCKET, SO_KEEPALIVE, (char const*)&optval, sizeof(optval));
272273

273274
msg.code = MSG_HANDSHAKE;
274275
msg.node = MtmNodeId;

doc/src/sgml/xtm.sgml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<!-- doc/src/sgml/xtm.sgml -->
2+
<chapter id="XTM">
3+
<title>eXtensible Transaction Manager</title>
4+
<indexterm zone="XTM">
5+
<primary>eXtensible Transaction Manager</primary>
6+
</indexterm>
7+
<para>
8+
</

0 commit comments

Comments
 (0)