Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszduda23 committed Jan 5, 2024
1 parent 5850672 commit 5f63811
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/traefik/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ func (r *responseWriter) WriteHeader(code int) {
// if code != 101 {
// r.websocket = false
// }
fmt.Println("=== code", code)
if r.ready == false && code == http.StatusServiceUnavailable {
// We get a 503 HTTP Status Code when there is no backend server in the pool
// to which the request could be sent. Also, note that r.ready
Expand Down Expand Up @@ -202,6 +203,7 @@ func (c *conn) Write(b []byte) (n int, err error) {
}

func (c *conn) Close() error {
fmt.Println("=== websocket close")
return c.conn.Close()
}

Expand Down

0 comments on commit 5f63811

Please sign in to comment.