v1.5.3
This reverts the websockets package back to https://github.com/gorilla/websocket/commit/931041c5ee6de24fe9cba1aa16f1a0b910284d6d
- Fixes subprotocol selection (aling with rfc6455) by @KSDaemon in https://github.com/gorilla/websocket/pull/823
- Update README.md, replace master to main by @mstmdev in https://github.com/gorilla/websocket/pull/862
- Use status code constant by @mstmdev in https://github.com/gorilla/websocket/pull/864
- conn.go: default close handler should not return ErrCloseSent. by @pnx in https://github.com/gorilla/websocket/pull/865
- fix: replace ioutil.readfile with os.readfile by @rfyiamcool in https://github.com/gorilla/websocket/pull/868
- fix: add comment for the readBufferSize and writeBufferSize by @rfyiamcool in https://github.com/gorilla/websocket/pull/869
- Remove noisy printf in NextReader() and beginMessage() by @bcreane in https://github.com/gorilla/websocket/pull/878
- docs(echoreadall): fix function echoReadAll comment by @XdpCs in https://github.com/gorilla/websocket/pull/881
- make tests parallel by @ninedraft in https://github.com/gorilla/websocket/pull/872
- Upgrader.Upgrade: use http.ResposnseController by @ninedraft in https://github.com/gorilla/websocket/pull/871
- Do not handle network error in
SetCloseHandler()
by @nak3 in https://github.com/gorilla/websocket/pull/863 - perf: reduce timer in write_control by @rfyiamcool in https://github.com/gorilla/websocket/pull/879
- fix: lint example code by @rfyiamcool in https://github.com/gorilla/websocket/pull/890
- feat: format message type by @rfyiamcool in https://github.com/gorilla/websocket/pull/889
- Remove hideTempErr to allow downstream users to check for errors like net.ErrClosed by @UnAfraid in https://github.com/gorilla/websocket/pull/894
- Do not timeout when WriteControl deadline is zero in https://github.com/gorilla/websocket/pull/898
- Excludes errchecks linter by @apoorvajagtap in https://github.com/gorilla/websocket/pull/904
- Return errors instead of printing to logs by @apoorvajagtap in https://github.com/gorilla/websocket/pull/897
- Revert " Update go version & add verification/testing tools (#840)" by @apoorvajagtap in https://github.com/gorilla/websocket/pull/908
- Fixes broken random value generation by @apoorvajagtap in https://github.com/gorilla/websocket/pull/926
- Reverts back to v1.5.0 by @apoorvajagtap in https://github.com/gorilla/websocket/pull/929
- @KSDaemon made their first contribution in https://github.com/gorilla/websocket/pull/823
- @mstmdev made their first contribution in https://github.com/gorilla/websocket/pull/862
- @pnx made their first contribution in https://github.com/gorilla/websocket/pull/865
- @rfyiamcool made their first contribution in https://github.com/gorilla/websocket/pull/868
- @bcreane made their first contribution in https://github.com/gorilla/websocket/pull/878
- @XdpCs made their first contribution in https://github.com/gorilla/websocket/pull/881
- @ninedraft made their first contribution in https://github.com/gorilla/websocket/pull/872
- @nak3 made their first contribution in https://github.com/gorilla/websocket/pull/863
- @UnAfraid made their first contribution in https://github.com/gorilla/websocket/pull/894
- @apoorvajagtap made their first contribution in https://github.com/gorilla/websocket/pull/904
Full Changelog: https://github.com/gorilla/websocket/compare/v1.5.1...v1.5.3
v1.5.2
- Fixes subprotocol selection (aling with rfc6455) by @KSDaemon in https://github.com/gorilla/websocket/pull/823
- Update README.md, replace master to main by @mstmdev in https://github.com/gorilla/websocket/pull/862
- Use status code constant by @mstmdev in https://github.com/gorilla/websocket/pull/864
- conn.go: default close handler should not return ErrCloseSent. by @pnx in https://github.com/gorilla/websocket/pull/865
- fix: replace ioutil.readfile with os.readfile by @rfyiamcool in https://github.com/gorilla/websocket/pull/868
- fix: add comment for the readBufferSize and writeBufferSize by @rfyiamcool in https://github.com/gorilla/websocket/pull/869
- Remove noisy printf in NextReader() and beginMessage() by @bcreane in https://github.com/gorilla/websocket/pull/878
- docs(echoreadall): fix function echoReadAll comment by @XdpCs in https://github.com/gorilla/websocket/pull/881
- make tests parallel by @ninedraft in https://github.com/gorilla/websocket/pull/872
- Upgrader.Upgrade: use http.ResposnseController by @ninedraft in https://github.com/gorilla/websocket/pull/871
- Do not handle network error in
SetCloseHandler()
by @nak3 in https://github.com/gorilla/websocket/pull/863 - perf: reduce timer in write_control by @rfyiamcool in https://github.com/gorilla/websocket/pull/879
- fix: lint example code by @rfyiamcool in https://github.com/gorilla/websocket/pull/890
- feat: format message type by @rfyiamcool in https://github.com/gorilla/websocket/pull/889
- Remove hideTempErr to allow downstream users to check for errors like net.ErrClosed by @UnAfraid in https://github.com/gorilla/websocket/pull/894
- Do not timeout when WriteControl deadline is zero in https://github.com/gorilla/websocket/pull/898
- Excludes errchecks linter by @apoorvajagtap in https://github.com/gorilla/websocket/pull/904
- Return errors instead of printing to logs by @apoorvajagtap in https://github.com/gorilla/websocket/pull/897
- Revert " Update go version & add verification/testing tools (#840)" by @apoorvajagtap in https://github.com/gorilla/websocket/pull/908
- Fixes broken random value generation by @apoorvajagtap in https://github.com/gorilla/websocket/pull/926
- @KSDaemon made their first contribution in https://github.com/gorilla/websocket/pull/823
- @mstmdev made their first contribution in https://github.com/gorilla/websocket/pull/862
- @pnx made their first contribution in https://github.com/gorilla/websocket/pull/865
- @rfyiamcool made their first contribution in https://github.com/gorilla/websocket/pull/868
- @bcreane made their first contribution in https://github.com/gorilla/websocket/pull/878
- @XdpCs made their first contribution in https://github.com/gorilla/websocket/pull/881
- @ninedraft made their first contribution in https://github.com/gorilla/websocket/pull/872
- @nak3 made their first contribution in https://github.com/gorilla/websocket/pull/863
- @UnAfraid made their first contribution in https://github.com/gorilla/websocket/pull/894
- @apoorvajagtap made their first contribution in https://github.com/gorilla/websocket/pull/904
Full Changelog: https://github.com/gorilla/websocket/compare/v1.5.1...v1.5.2
v1.5.2
- Fixes subprotocol selection (aling with rfc6455) by @KSDaemon in https://github.com/gorilla/websocket/pull/823
- Update README.md, replace master to main by @mstmdev in https://github.com/gorilla/websocket/pull/862
- Use status code constant by @mstmdev in https://github.com/gorilla/websocket/pull/864
- conn.go: default close handler should not return ErrCloseSent. by @pnx in https://github.com/gorilla/websocket/pull/865
- fix: replace ioutil.readfile with os.readfile by @rfyiamcool in https://github.com/gorilla/websocket/pull/868
- fix: add comment for the readBufferSize and writeBufferSize by @rfyiamcool in https://github.com/gorilla/websocket/pull/869
- Remove noisy printf in NextReader() and beginMessage() by @bcreane in https://github.com/gorilla/websocket/pull/878
- docs(echoreadall): fix function echoReadAll comment by @XdpCs in https://github.com/gorilla/websocket/pull/881
- make tests parallel by @ninedraft in https://github.com/gorilla/websocket/pull/872
- Upgrader.Upgrade: use http.ResposnseController by @ninedraft in https://github.com/gorilla/websocket/pull/871
- Do not handle network error in
SetCloseHandler()
by @nak3 in https://github.com/gorilla/websocket/pull/863 - perf: reduce timer in write_control by @rfyiamcool in https://github.com/gorilla/websocket/pull/879
- fix: lint example code by @rfyiamcool in https://github.com/gorilla/websocket/pull/890
- feat: format message type by @rfyiamcool in https://github.com/gorilla/websocket/pull/889
- Remove hideTempErr to allow downstream users to check for errors like net.ErrClosed by @UnAfraid in https://github.com/gorilla/websocket/pull/894
- Do not timeout when WriteControl deadline is zero in https://github.com/gorilla/websocket/pull/898
- Excludes errchecks linter by @apoorvajagtap in https://github.com/gorilla/websocket/pull/904
- Return errors instead of printing to logs by @apoorvajagtap in https://github.com/gorilla/websocket/pull/897
- Revert " Update go version & add verification/testing tools (#840)" by @apoorvajagtap in https://github.com/gorilla/websocket/pull/908
- @KSDaemon made their first contribution in https://github.com/gorilla/websocket/pull/823
- @mstmdev made their first contribution in https://github.com/gorilla/websocket/pull/862
- @pnx made their first contribution in https://github.com/gorilla/websocket/pull/865
- @rfyiamcool made their first contribution in https://github.com/gorilla/websocket/pull/868
- @bcreane made their first contribution in https://github.com/gorilla/websocket/pull/878
- @XdpCs made their first contribution in https://github.com/gorilla/websocket/pull/881
- @ninedraft made their first contribution in https://github.com/gorilla/websocket/pull/872
- @nak3 made their first contribution in https://github.com/gorilla/websocket/pull/863
- @UnAfraid made their first contribution in https://github.com/gorilla/websocket/pull/894
- @apoorvajagtap made their first contribution in https://github.com/gorilla/websocket/pull/904
Full Changelog: https://github.com/gorilla/websocket/compare/v1.5.1...v1.5.2
Release v2.0
What's Changed
- Add check for Sec-WebSocket-Key header by @hirasawayuki in https://github.com/gorilla/websocket/pull/752
- Changed the method name UnderlyingConn to NetConn by @JWSong in https://github.com/gorilla/websocket/pull/773
- remove all versions < 1.16 and add 1.18 by @ChannyClaus in https://github.com/gorilla/websocket/pull/793
- Check for and report bad protocol in TLSClientConfig.NextProtos by @ChannyClaus in https://github.com/gorilla/websocket/pull/788
- check err before GotConn for trace by @junnplus in https://github.com/gorilla/websocket/pull/798
- Update README.md by @coreydaley in https://github.com/gorilla/websocket/pull/839
- Correct way to save memory using write buffer pool and freeing net.http default buffers by @FMLS in https://github.com/gorilla/websocket/pull/761
- Update go version & add verification/testing tools by @coreydaley in https://github.com/gorilla/websocket/pull/840
- update golang.org/x/net by @coreydaley in https://github.com/gorilla/websocket/pull/856
- update GitHub workflows by @coreydaley in https://github.com/gorilla/websocket/pull/857
New Contributors
- @hirasawayuki made their first contribution in https://github.com/gorilla/websocket/pull/752
- @JWSong made their first contribution in https://github.com/gorilla/websocket/pull/773
- @ChannyClaus made their first contribution in https://github.com/gorilla/websocket/pull/793
- @junnplus made their first contribution in https://github.com/gorilla/websocket/pull/798
- @coreydaley made their first contribution in https://github.com/gorilla/websocket/pull/839
- @FMLS made their first contribution in https://github.com/gorilla/websocket/pull/761
Full Changelog: https://github.com/gorilla/websocket/compare/v1.5.0...v2.0
Release v1.5.1
What's Changed
- Add check for Sec-WebSocket-Key header by @hirasawayuki in https://github.com/gorilla/websocket/pull/752
- Changed the method name UnderlyingConn to NetConn by @JWSong in https://github.com/gorilla/websocket/pull/773
- remove all versions < 1.16 and add 1.18 by @ChannyClaus in https://github.com/gorilla/websocket/pull/793
- Check for and report bad protocol in TLSClientConfig.NextProtos by @ChannyClaus in https://github.com/gorilla/websocket/pull/788
- check err before GotConn for trace by @junnplus in https://github.com/gorilla/websocket/pull/798
- Update README.md by @coreydaley in https://github.com/gorilla/websocket/pull/839
- Correct way to save memory using write buffer pool and freeing net.http default buffers by @FMLS in https://github.com/gorilla/websocket/pull/761
- Update go version & add verification/testing tools by @coreydaley in https://github.com/gorilla/websocket/pull/840
- update golang.org/x/net by @coreydaley in https://github.com/gorilla/websocket/pull/856
- update GitHub workflows by @coreydaley in https://github.com/gorilla/websocket/pull/857
New Contributors
- @hirasawayuki made their first contribution in https://github.com/gorilla/websocket/pull/752
- @JWSong made their first contribution in https://github.com/gorilla/websocket/pull/773
- @ChannyClaus made their first contribution in https://github.com/gorilla/websocket/pull/793
- @junnplus made their first contribution in https://github.com/gorilla/websocket/pull/798
- @coreydaley made their first contribution in https://github.com/gorilla/websocket/pull/839
- @FMLS made their first contribution in https://github.com/gorilla/websocket/pull/761
Full Changelog: https://github.com/gorilla/websocket/compare/v1.5.0...v1.5.1
Minor new features and maintenance update
Minor new features and maintenance update
CHANGELOG
- Dialer: add optional method NetDialTLSContext (#746) @lluiscampos
- Update README (#757) @garyburd
- Remove support for Go 1.8 (#755) @garyburd
- Improve protocol error messages (#754) @garyburd
- Update autobahn example (#753) @garyburd
- Fix broadcast benchmarks (#542) @FZambia
- Use context.Context in TLS handshake (#751) @garyburd
- Modify http Method String Literal to Variable (#728) @thak1411
- Update to match gofmt 1.17 (#750) @garyburd
- Document the allowed concurrency on Upgrader and Dialer (#636) @ghost
- improve echo example (#671) @hellflame
- build: use build matrix; drop Go <= 1.10 (#629) @elithrar
- Fix Docs w.r.t. setting subprotocols (#627) @elithrar
- Fix how the client checks for presence of Upgrade: websocket, Connection: upgrade (#604) @bluetech
v1.4.2
v1.4.2
is a minor maintenance release, with minor fixes to examples, documentation, and internals.
Note: We are still looking for proactive maintainer(s) and issue triagers. Thanks to all who contributed to this release with either PRs or reviews - especially @srybacki for the ongoing efforts here.
CHANGELOG
- build: clean up go.sum (#584) @elithrar
- Fix typo. (#568) @jongillham
- Duration order consistency when multiplying number by time unit (#570) @maxifom
- echo example: handle received messages as text, not HTML (#563) @srybacki
- Use empty struct to protect writing (#566) @ferhatelmas
- input autofocus (#564) @codenoid
- Fix a couple of small typos (#567) @johnernaut
- minor typo (#583) @dbaker-rh
- Changed the link of API references to pkg.go.dev (#577) @thearyanahmed
v1.4.1
Notable Changes
The vulnerability could allow an attacker to consume excessive amounts of memory on the server by bypassing read limits, and potentially cause the server to go out-of-memory (OOM).
See the published security advisory for more details.
Credit to Max Justicz (https://justi.cz/) for discovering and reporting this, as well as providing a robust PoC and review.
CHANGELOG
c3e18be Create release-drafter.yml (#538) 5b740c2 Read Limit Fix (#537) 7e9819d fix typos (#532) ae1634f Create CircleCI config.yml (#519) 80c2d40 fix autobahn test suite link (#503) 6a67f44 remove redundant err!=nil check in conn.go Close method (#505) 0ec3d1b Fix typo 856ca61 Add buffer commentary 7c8e298 Add support for go-module 8ab6030 Add JoinMessages 95ba29e Updated autobahn test suite URL 483fb8d Add "in bytes" to sizes in documentation 76e4896 Fix formatting problem in the docs. (#435) a51a35a Improve header parsing code 3130e8d Return write buffer to pool on write error (#427) cdd40f5 Add comprehensive host test (#429)
v1.4.0
Note: This release drops support for Go versions prior to v1.7.
This release adds a new DialContext
function, which supports cancellation via the context.Context
.
CHANGELOG:
66b9c49 Move context to first parameter in DialContext a9dd6e8 miscellaneous cleanup ceae452 Add context in the Dialer b378cae Add write buffer pooling 5fb9417 drop Go versions prior to 1.7 in CI
v1.3.0
Note: This will be the last release that supports Go 1.6 and earlier. Go 1.6 was released in February 2016. Features may be backported upon request, but we recommend users build their applications with the latest versions of Go wherever possible.
CHANGELOG
3ff3320 Improve server subprotocol documentation 5ed622c Update LICENSE file to reflect Google employee contributions. c17c80c Merge pull request #385 from dottyjones/master badcf87 Improve names in handshake deadline test f90b62c Add test for handshake deadline 21ab95f Modify headers to match case used in RFC examples cd94665 Minor fixes in comments eb92580 Use net.Buffers to write multiple slices to connection 4835f71 Improve client default timeout code 8c40c0b Bump default handshake timetout to 45 seconds 196b8d0 Add a default handshake timeout of 5 seconds e426f23 Sec-WebSocket-Protocol is capitalize instead of canonical 6656ddc add newline and remove extra space 0647012 Modify http status code to variable f37d158 Travis config: add Go 1.10.x, revert 1.4.x to 1.4 2967b10 Use latest patch releases of Go 8fbc40b Simplify echo example client (#349) 4ac9097 Improve control message handler doc 91f589d Improve check origin documentation 292fd08 Replace "frame" with "message" in documentation 58729a2 Don't log 1006 error in chat example d965e9a Handle no status in FormatCloseMessage cdedf21 examples/chat/client.go: avoid allocating []byte{} for PingMessage (#312) c55883f Add parseExtensions test case (#310) b89020e Add SOCKS5 support 8c6cfd4 Improve bad handshake error text 2b58522 update README.md b648f20 Use ASCII case folding in same origin test 23059f2 Update with gofmt on tip 447c2df Compare request header tokens with ASCII case folding aa5ed01 Improve control message handling documentation 7ca4275 More consistent error handling in doc 3da6ca0 Simplify and fix spelling errors in test files 71fa72d Replace parseURL() with net/url.Parse() (#290) f918560 Improve NextWriter documentation c908dc8 Typo fix 4201258 Merge pull request #286 from alaingilbert/patch-1 5755884 Add missing html tag in example/echo 6f34763 Add Go 1.9 to Travis config a69d9f6 Merge branch 'updoc' 92f772e Misc cleanup f4f69d2 implementing (some of) @garyburd's suggestions 462d5c5 Merge pull request #261 from kybin/master 1d375d5 distinguish Upgrader.Upgrade from Upgrade 7a8dacf doc: use ":=" when check error for conn.WriteMessage