koding / websocketproxy

WebSocket reverse proxy handler for Go
http://godoc.org/github.com/koding/websocketproxy
MIT License
427 stars 120 forks source link

Don't forward `CloseAbnormalClosure`(`1006`) and `CloseTLSHandshake`(`1015`) as close frames #25

Open ttjiaa opened 6 years ago

ttjiaa commented 6 years ago

This PR fixes the issue where CloseAbnormalClosure(1006) and CloseTLSHandshake(1015) are incorrectly forwarded as close frames, as they are reserved.

Changes are made in correspondence to https://github.com/vulcand/oxy/blob/master/forward/fwd.go#L402-L418.

Ref: https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent

feiyiban commented 2 years ago

The problem still exists