portainer/portainer

View on GitHub
api/http/handler/websocket/hijack.go

Summary

Maintainability
A
35 mins
Test Coverage

Function writeTCPToWebSocket has 5 return statements (exceeds 4 allowed).
Open

func writeTCPToWebSocket(websocketConn *websocket.Conn, tcpConn net.Conn, errorChan chan error) {
    var mu sync.Mutex
    out := make([]byte, readerBufferSize)
    input := make(chan string)
    pingTicker := time.NewTicker(pingPeriod)
Severity: Major
Found in api/http/handler/websocket/hijack.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status