Skip to content

Commit 97c274f

Browse files
authored
Merge pull request lightninglabs#63 from ellemouton/disableWebsocketPings
aperture: disable websocket proxy pings for hashmail server
2 parents 3233562 + 655bca0 commit 97c274f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

aperture.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,7 @@ func createHashMailServer(cfg *Config) ([]proxy.LocalService, func(), error) {
689689
// collector will export latency metrics for the histogram.
690690
grpc_prometheus.EnableHandlingTimeHistogram()
691691

692-
var serverOpts []grpc.ServerOption
693-
serverOpts = []grpc.ServerOption{
692+
serverOpts := []grpc.ServerOption{
694693
grpc.ChainUnaryInterceptor(
695694
grpc_prometheus.UnaryServerInterceptor,
696695
),
@@ -750,8 +749,7 @@ func createHashMailServer(cfg *Config) ([]proxy.LocalService, func(), error) {
750749

751750
// Wrap the default grpc-gateway handler with the WebSocket handler.
752751
restHandler := lnrpc.NewWebSocketProxy(
753-
mux, log, time.Second*30, time.Second*5,
754-
clientStreamingURIs,
752+
mux, log, 0, 0, clientStreamingURIs,
755753
)
756754

757755
// Create our proxy chain now. A request will pass

0 commit comments

Comments
 (0)