@@ -147,6 +147,7 @@ impl WebSocketTransport {
147
147
let connection_open_timeout = self . config . connection_open_timeout ;
148
148
let max_read_ahead_factor = self . config . noise_read_ahead_frame_count ;
149
149
let max_write_buffer_size = self . config . noise_write_buffer_size ;
150
+ let substream_open_timeout = self . config . substream_open_timeout ;
150
151
let address = Multiaddr :: empty ( )
151
152
. with ( Protocol :: from ( address. ip ( ) ) )
152
153
. with ( Protocol :: Tcp ( address. port ( ) ) )
@@ -162,6 +163,7 @@ impl WebSocketTransport {
162
163
yamux_config,
163
164
max_read_ahead_factor,
164
165
max_write_buffer_size,
166
+ substream_open_timeout,
165
167
)
166
168
. await
167
169
. map_err ( |error| ( connection_id, error. into ( ) ) )
@@ -342,6 +344,7 @@ impl Transport for WebSocketTransport {
342
344
let connection_open_timeout = self . config . connection_open_timeout ;
343
345
let max_read_ahead_factor = self . config . noise_read_ahead_frame_count ;
344
346
let max_write_buffer_size = self . config . noise_write_buffer_size ;
347
+ let substream_open_timeout = self . config . substream_open_timeout ;
345
348
let dial_addresses = self . dial_addresses . clone ( ) ;
346
349
let nodelay = self . config . nodelay ;
347
350
@@ -369,6 +372,7 @@ impl Transport for WebSocketTransport {
369
372
yamux_config,
370
373
max_read_ahead_factor,
371
374
max_write_buffer_size,
375
+ substream_open_timeout,
372
376
)
373
377
. await
374
378
. map_err ( |error| ( connection_id, error. into ( ) ) )
@@ -536,6 +540,7 @@ impl Transport for WebSocketTransport {
536
540
let max_read_ahead_factor = self . config . noise_read_ahead_frame_count ;
537
541
let max_write_buffer_size = self . config . noise_write_buffer_size ;
538
542
let connection_open_timeout = self . config . connection_open_timeout ;
543
+ let substream_open_timeout = self . config . substream_open_timeout ;
539
544
let keypair = self . context . keypair . clone ( ) ;
540
545
541
546
tracing:: trace!(
@@ -559,6 +564,7 @@ impl Transport for WebSocketTransport {
559
564
yamux_config,
560
565
max_read_ahead_factor,
561
566
max_write_buffer_size,
567
+ substream_open_timeout,
562
568
)
563
569
. await
564
570
. map_err ( |error| ( connection_id, error. into ( ) ) )
0 commit comments