Releases: gorilla/websocket
v1.5.3
Important change
This reverts the websockets package back to 931041c
What's Changed
- Fixes subprotocol selection (aling with rfc6455) by @KSDaemon in #823
- Update README.md, replace master to main by @mstmdev in #862
- Use status code constant by @mstmdev in #864
- conn.go: default close handler should not return ErrCloseSent. by @pnx in #865
- fix: replace ioutil.readfile with os.readfile by @rfyiamcool in #868
- fix: add comment for the readBufferSize and writeBufferSize by @rfyiamcool in #869
- Remove noisy printf in NextReader() and beginMessage() by @bcreane in #878
- docs(echoreadall): fix function echoReadAll comment by @XdpCs in #881
- make tests parallel by @ninedraft in #872
- Upgrader.Upgrade: use http.ResposnseController by @ninedraft in #871
- Do not handle network error in
SetCloseHandler()
by @nak3 in #863 - perf: reduce timer in write_control by @rfyiamcool in #879
- fix: lint example code by @rfyiamcool in #890
- feat: format message type by @rfyiamcool in #889
- Remove hideTempErr to allow downstream users to check for errors like net.ErrClosed by @UnAfraid in #894
- Do not timeout when WriteControl deadline is zero in #898
- Excludes errchecks linter by @apoorvajagtap in #904
- Return errors instead of printing to logs by @apoorvajagtap in #897
- Revert " Update go version & add verification/testing tools (#840)" by @apoorvajagtap in #908
- Fixes broken random value generation by @apoorvajagtap in #926
- Reverts back to v1.5.0 by @apoorvajagtap in #929
New Contributors
- @KSDaemon made their first contribution in #823
- @mstmdev made their first contribution in #862
- @pnx made their first contribution in #865
- @rfyiamcool made their first contribution in #868
- @bcreane made their first contribution in #878
- @XdpCs made their first contribution in #881
- @ninedraft made their first contribution in #872
- @nak3 made their first contribution in #863
- @UnAfraid made their first contribution in #894
- @apoorvajagtap made their first contribution in #904
Full Changelog: v1.5.1...v1.5.3
v1.5.2
What's Changed
- Fixes subprotocol selection (aling with rfc6455) by @KSDaemon in #823
- Update README.md, replace master to main by @mstmdev in #862
- Use status code constant by @mstmdev in #864
- conn.go: default close handler should not return ErrCloseSent. by @pnx in #865
- fix: replace ioutil.readfile with os.readfile by @rfyiamcool in #868
- fix: add comment for the readBufferSize and writeBufferSize by @rfyiamcool in #869
- Remove noisy printf in NextReader() and beginMessage() by @bcreane in #878
- docs(echoreadall): fix function echoReadAll comment by @XdpCs in #881
- make tests parallel by @ninedraft in #872
- Upgrader.Upgrade: use http.ResposnseController by @ninedraft in #871
- Do not handle network error in
SetCloseHandler()
by @nak3 in #863 - perf: reduce timer in write_control by @rfyiamcool in #879
- fix: lint example code by @rfyiamcool in #890
- feat: format message type by @rfyiamcool in #889
- Remove hideTempErr to allow downstream users to check for errors like net.ErrClosed by @UnAfraid in #894
- Do not timeout when WriteControl deadline is zero in #898
- Excludes errchecks linter by @apoorvajagtap in #904
- Return errors instead of printing to logs by @apoorvajagtap in #897
- Revert " Update go version & add verification/testing tools (#840)" by @apoorvajagtap in #908
- Fixes broken random value generation by @apoorvajagtap in #926
New Contributors
- @KSDaemon made their first contribution in #823
- @mstmdev made their first contribution in #862
- @pnx made their first contribution in #865
- @rfyiamcool made their first contribution in #868
- @bcreane made their first contribution in #878
- @XdpCs made their first contribution in #881
- @ninedraft made their first contribution in #872
- @nak3 made their first contribution in #863
- @UnAfraid made their first contribution in #894
- @apoorvajagtap made their first contribution in #904
Full Changelog: v1.5.1...v1.5.2
Release v1.5.1
What's Changed
- Add check for Sec-WebSocket-Key header by @hirasawayuki in #752
- Changed the method name UnderlyingConn to NetConn by @JWSong in #773
- remove all versions < 1.16 and add 1.18 by @ChannyClaus in #793
- Check for and report bad protocol in TLSClientConfig.NextProtos by @ChannyClaus in #788
- check err before GotConn for trace by @junnplus in #798
- Update README.md by @coreydaley in #839
- Correct way to save memory using write buffer pool and freeing net.http default buffers by @FMLS in #761
- Update go version & add verification/testing tools by @coreydaley in #840
- update golang.org/x/net by @coreydaley in #856
- update GitHub workflows by @coreydaley in #857
New Contributors
- @hirasawayuki made their first contribution in #752
- @JWSong made their first contribution in #773
- @ChannyClaus made their first contribution in #793
- @junnplus made their first contribution in #798
- @coreydaley made their first contribution in #839
- @FMLS made their first contribution in #761
Full Changelog: 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
v1.2.0
v1.2.0 addresses client compression bugs, improves error messages surrounding HTTP Upgrade requests, and improves the safety around how bytes were masked.
CHANGELOG
ea4d1f6 Reduce memory used in chat example
a91eba7 Merge pull request #230 from FZambia/fix_client_compression
8dc1cf9 enable client compression based on response header
b258b4f Use bufio.Writer returned from hijack in upgrade
4873052 Fix formatting.
286b5c9 Use bufio.Reader returned from hijack in upgrade
3f3e394 Update cloneTLSConfig to use Go 1.8 Config.Clone method
9acaa68 Add Go 1.8 to Travis config
5ade364 Improve examples
804cb60 Prepared Messages (#211)
9bc973a Change text/template to html/template in the examples
c36f2fe Merge pull request #210 from nobuf/nobuf/update-doc-about-compression
1025138 Add code snippet for EnableCompression in doc.go, change EnableWriteCompression()'s parameter to false since enableWriteCompression is true by default.
4e4c8d0 Merge pull request #208 from FZambia/flate_write_pool_fix
ac61189 remove test as HuffmanOnly compression level not defined in Go < 1.7
eb45753 fix flate write pool size to work with best compression
0674c7c Improve upgrade error messages
2257eda Fix compile error on Go < 1.6
522f286 Fix to compile on Go < 1.6
b0dc455 Change default and add API for compression level
bb547c6 Improve SetXHandler documentation
561ac01 Merge pull request #205 from FZambia/compression_benchmarks
34e0535 benchmarks for write with compression enabled/disabled
1763434 Update compression documentation
adf16b3 Add safe maskBytes
5ddbd28 Merge branch 'compress'
6c51b25 Compression improvements
404e6b1 Merge pull request #199 from AndrienkoAleksandr/master
0e7877a Fix up README.md for command example.
2db2f66 pool flate readers