Remove read deadlines from the connection.

Prevents the connection from closing from a lack of incoming messages.
This commit is contained in:
Jay
2026-04-15 17:43:26 -04:00
parent bc876e4757
commit b57f5157e7
6 changed files with 20 additions and 226 deletions
+2 -2
View File
@@ -62,7 +62,7 @@ func TestNewConnection(t *testing.T) {
{
name: "valid url, valid config",
url: "wss://relay.example.com:8080/path",
config: &Config{ReadTimeout: 30 * time.Second},
config: &Config{WriteTimeout: 30 * time.Second},
},
{
name: "invalid url",
@@ -146,7 +146,7 @@ func TestNewConnectionFromSocket(t *testing.T) {
{
name: "valid socket with valid config",
socket: NewMockSocket(),
config: &Config{ReadTimeout: 30 * time.Second},
config: &Config{WriteTimeout: 30 * time.Second},
},
{
name: "invalid config",