You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -586,6 +587,38 @@ This setting is per client and cannot be changed later.
586
587
587
588
__Note:__ Using CESU-8 brings performance penalties proportionate to the text size that has to be converted.
588
589
590
+
TCP Keepalive
591
+
-------------
592
+
593
+
To configure TCP keepalive behaviour, include the tcpKeepAliveIdle connect option. The value provided for this option is the number of seconds before an idle connection will begin sending keepalive packets. By default, TCP keepalive will be turned on with a value of 200 seconds. If a value of 0 is specified, keepalive behaviour is determined by the operating system.
594
+
The following example creates a client whose connections will begin sending keepalive packets after 300 seconds.
595
+
596
+
```js
597
+
var hdb =require('hdb');
598
+
var client =hdb.createClient({
599
+
host :'hostname',
600
+
port :30015,
601
+
user :'user',
602
+
password :'secret',
603
+
tcpKeepAliveIdle :300
604
+
});
605
+
606
+
```
607
+
608
+
TCP keepalive can be explicity disabled by specifying tcpKeepAliveIdle=false as in the example below.
0 commit comments