aperture: disable websocket proxy pings for hashmail server

Set the ping and pong intervals of the websocket proxy to zero in order
to disable them. This is needed since a browser client is unable to
respond to these pings.
This commit is contained in:
Elle Mouton
2022-01-21 13:30:56 +02:00
parent efad183240
commit 655bca0ecb

View File

@@ -689,8 +689,7 @@ func createHashMailServer(cfg *Config) ([]proxy.LocalService, func(), error) {
// collector will export latency metrics for the histogram.
grpc_prometheus.EnableHandlingTimeHistogram()
var serverOpts []grpc.ServerOption
serverOpts = []grpc.ServerOption{
serverOpts := []grpc.ServerOption{
grpc.ChainUnaryInterceptor(
grpc_prometheus.UnaryServerInterceptor,
),
@@ -750,8 +749,7 @@ func createHashMailServer(cfg *Config) ([]proxy.LocalService, func(), error) {
// Wrap the default grpc-gateway handler with the WebSocket handler.
restHandler := lnrpc.NewWebSocketProxy(
mux, log, time.Second*30, time.Second*5,
clientStreamingURIs,
mux, log, 0, 0, clientStreamingURIs,
)
// Create our proxy chain now. A request will pass