Double the timeout for the initial connection to complete

This commit is contained in:
Jacob
2024-05-13 15:59:36 -04:00
parent e3fd10d9aa
commit 01ff525f3c

View File

@@ -13,7 +13,7 @@ import (
) )
func Dial(address string, tlsConfig *tls.Config, ordered bool, iceServers []string) (*Conn, error) { func Dial(address string, tlsConfig *tls.Config, ordered bool, iceServers []string) (*Conn, error) {
dialCtx, cancel := context.WithTimeout(context.Background(), 5 * time.Second) // TODO: pass in timeout dialCtx, cancel := context.WithTimeout(context.Background(), 10 * time.Second) // TODO: pass in timeout
defer cancel() defer cancel()
wSock, err := dialWebsocket(address, tlsConfig, dialCtx) wSock, err := dialWebsocket(address, tlsConfig, dialCtx)