File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,14 @@ import (
4
4
"crypto/tls"
5
5
"fmt"
6
6
"sync"
7
+ "time"
7
8
8
9
"github.com/btcsuite/btcd/btcec"
9
10
"github.com/lightninglabs/lightning-node-connect/mailbox"
10
11
"github.com/lightningnetwork/lnd/keychain"
11
12
"google.golang.org/grpc"
12
13
"google.golang.org/grpc/credentials"
14
+ "google.golang.org/grpc/keepalive"
13
15
)
14
16
15
17
type sessionID [33 ]byte
@@ -41,6 +43,9 @@ func (m *mailboxSession) start(session *Session,
41
43
mailboxServer , err := mailbox .NewServer (
42
44
session .ServerAddr , session .PairingSecret [:],
43
45
grpc .WithTransportCredentials (credentials .NewTLS (tlsConfig )),
46
+ grpc .WithKeepaliveParams (keepalive.ClientParameters {
47
+ Time : 2 * time .Minute ,
48
+ }),
44
49
)
45
50
if err != nil {
46
51
return err
You can’t perform that action at this time.
0 commit comments