You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix data race on wsPool lazy init and minor issues
- Initialize wsPool eagerly in NewClient instead of lazily in
createWebSocketStream to eliminate a potential data race when
concurrent goroutines both see wsPool==nil
- Downgrade WebSocket→SSE fallback log from Error to Warn since this
is an intentional graceful degradation, not an unexpected error
- Close HTTP response body defensively in dialWebSocket on handshake
failure to prevent a potential resource leak
Assisted-By: docker-agent
0 commit comments