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 (
44 "crypto/tls"
55 "fmt"
66 "sync"
7+ "time"
78
89 "github.com/btcsuite/btcd/btcec"
910 "github.com/lightninglabs/lightning-node-connect/mailbox"
1011 "github.com/lightningnetwork/lnd/keychain"
1112 "google.golang.org/grpc"
1213 "google.golang.org/grpc/credentials"
14+ "google.golang.org/grpc/keepalive"
1315)
1416
1517type sessionID [33 ]byte
@@ -41,6 +43,9 @@ func (m *mailboxSession) start(session *Session,
4143 mailboxServer , err := mailbox .NewServer (
4244 session .ServerAddr , session .PairingSecret [:],
4345 grpc .WithTransportCredentials (credentials .NewTLS (tlsConfig )),
46+ grpc .WithKeepaliveParams (keepalive.ClientParameters {
47+ Time : 2 * time .Minute ,
48+ }),
4449 )
4550 if err != nil {
4651 return err
You can’t perform that action at this time.
0 commit comments