Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/usecase/devices/wsman/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ var (
connectionsMu sync.RWMutex
waitForAuthTickTime = 1 * time.Second
queueTickTime = 500 * time.Millisecond
expireAfter = 30 * time.Second // expire the stored connection after 30 seconds
waitForAuth = 3 * time.Second // wait for 3 seconds for the connection to authenticate, prevents multiple api calls trying to auth at the same time
expireAfter = 60 * time.Second // expire the stored connection after 60 seconds
waitForAuth = 30 * time.Second // wait for 30 seconds for the connection to authenticate, prevents multiple api calls trying to auth at the same time
requestQueue = make(chan func(), deviceCallBuffer) // Buffered channel to queue requests
shutdownSignal = make(chan struct{})

Expand Down
4 changes: 2 additions & 2 deletions pkg/httpserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
)

const (
_defaultReadTimeout = 15 * time.Second
_defaultWriteTimeout = 15 * time.Second
_defaultReadTimeout = 40 * time.Second
_defaultWriteTimeout = 40 * time.Second
_defaultAddr = ":80"
_defaultShutdownTimeout = 3 * time.Second

Expand Down
Loading