We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0cba16 commit fb4e470Copy full SHA for fb4e470
agent/immortalstreams/manager.go
@@ -6,6 +6,7 @@ import (
6
"fmt"
7
"io"
8
"net"
9
+ "strings"
10
"sync"
11
"syscall"
12
"time"
@@ -245,5 +246,10 @@ func isConnectionRefused(err error) bool {
245
246
}
247
248
- return false
249
+ // Cross-platform fallback: check error message for common connection refused patterns
250
+ // This handles Windows (connectex) and other platforms that might have different error constants
251
+ errStr := err.Error()
252
+ return strings.Contains(errStr, "connection refused") ||
253
+ strings.Contains(errStr, "connectex: No connection could be made because the target machine actively refused it") ||
254
+ strings.Contains(errStr, "actively refused")
255
0 commit comments