Skip to content

Commit

Permalink
Add comment about support half-closed states.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbruens committed Jan 23, 2025
1 parent 354d8a8 commit d37e358
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/outline-ss-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ func (s *OutlineServer) runConfig(config Config) (func() error, error) {
return fmt.Errorf("listener type `%s` references unknown web server `%s`", lnConfig.Type, lnConfig.WebServer)
}
mux := webServers[lnConfig.WebServer]
// TODO: Support a "half-closed" state for WebSockets.
handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
handler := func(wsConn *websocket.Conn) {
defer wsConn.Close()
Expand Down

0 comments on commit d37e358

Please sign in to comment.