GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update go version & add verification/testing tools by coreydaley · Pull Request #840 · gorilla/websocket

Conversation

@coreydaley

@coreydaley coreydaley commented Jul 19, 2023

Copy link
Copy Markdown

Fixes #

Summary of Changes

PS: Make sure your PR includes/updates tests! If you need help with this part, just ask!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

j178 and bbrks reacted with thumbs down emoji
All reactions
  • 👎 2 reactions
@coreydaley
coreydaley force-pushed the coreydaley-patch-1 branch from b785693 to 9a161b0 Compare July 24, 2023 01:10
@pull-request-size pull-request-size Bot added size/L size/XL and removed size/L labels Jul 24, 2023
@Earlopain Earlopain mentioned this pull request Jul 28, 2023
Discussion: Gorilla websockets are in read-only mode bwmarrin/discordgo#1352
Open
@coreydaley coreydaley changed the title Delete .circleci directory Update go version & add verification/testing tools Jul 30, 2023
This was referenced Jul 30, 2023
Replaced the deprecated ioutil package #776
Closed
Replace deprecated ioutil pkg and bump go.mod to 1.16 #827
Closed
ghost
ghost reviewed Aug 14, 2023
View reviewed changes
Comment thread util.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread conn.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

ghost
ghost reviewed Aug 17, 2023
View reviewed changes
Comment thread go.mod Resolved

Uh oh!

There was an error while loading. Please reload this page.

@coreydaley
coreydaley force-pushed the coreydaley-patch-1 branch 2 times, most recently from 9b696aa to 9bc6e34 Compare August 25, 2023 18:03
@pull-request-size pull-request-size Bot added size/XXL and removed size/XL labels Aug 25, 2023
@coreydaley
coreydaley force-pushed the coreydaley-patch-1 branch 3 times, most recently from 45ec879 to 0058a29 Compare August 25, 2023 18:22
@coreydaley
coreydaley enabled auto-merge (squash) August 25, 2023 18:22
@codecov

codecov Bot commented Aug 25, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (main@8039329). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head 0b06b53 differs from pull request most recent head 97ebd5b. Consider uploading reports for the commit 97ebd5b to get more accurate results

@@           Coverage Diff           @@
##             main     #840   +/-   ##
=======================================
  Coverage        ?   66.47%           
=======================================
  Files           ?       11           
  Lines           ?     1596           
  Branches        ?        0           
=======================================
  Hits            ?     1061           
  Misses          ?      424           
  Partials        ?      111           
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coreydaley
coreydaley requested review from a user, AlexVulaj and apoorvajagtap August 25, 2023 18:29
apoorvajagtap
apoorvajagtap requested changes Aug 25, 2023
View reviewed changes
Comment thread LICENSE Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread README.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread README.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread prepared_test.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

@coreydaley
coreydaley requested a review from apoorvajagtap August 26, 2023 00:14
Halo Arrow
Use crypto/rand for mask key
f9cf504
@coreydaley
coreydaley force-pushed the coreydaley-patch-1 branch from 0b06b53 to 73bfa98 Compare August 26, 2023 02:33
@coreydaley coreydaley mentioned this pull request Aug 26, 2023
Use crypto/rand for mask key #846
Closed
@coreydaley
coreydaley force-pushed the coreydaley-patch-1 branch 3 times, most recently from b761ebe to 7dd2ee2 Compare August 26, 2023 16:09
Corey Daley
updating to go1.19 and various other files
97ebd5b
@coreydaley
coreydaley force-pushed the coreydaley-patch-1 branch from 7dd2ee2 to 97ebd5b Compare August 26, 2023 18:03
apoorvajagtap
apoorvajagtap approved these changes Aug 26, 2023
View reviewed changes
@coreydaley
coreydaley merged commit 666c197 into main Aug 26, 2023
@coreydaley
coreydaley deleted the coreydaley-patch-1 branch August 26, 2023 20:01
ghost
ghost reviewed Aug 27, 2023
View reviewed changes

@ghost ghost left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error handling in the package was degraded by changes made in response to lint messages.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread client.go
if err != nil {
c.Close()
if err := c.Close(); err != nil {
log.Printf("websocket: failed to close network connection: %v", err)

@ghost ghost Aug 27, 2023

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Writing to the application's stderr is unfriendly. If you must handle the error in some way, then return nil, errors.Join(err, c.Close()).

This comment applies to other locations where the package writes to the application's stderr.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

warrenguyrain reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Comment thread conn.go

func hideTempErr(err error) error {
if e, ok := err.(net.Error); ok && e.Temporary() {
if e, ok := err.(net.Error); ok {

@ghost ghost Aug 27, 2023

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based the function name, comments at #29 and comments at efd7f76, the purpose of the function is to avoid returning net.Error with Temporary() == true.

In practice, hideTemp error wraps deadline exceeded errors because deadline exceeded is the only temporary error returned from read or write on a connection.

The new code wraps all network errors. Wrapping all errors should be avoided because it can hide useful information from the application.

Either revert back to the original function or remove the function. It's no longer necessary to force Temporary() == false because applications should not call the deprecated Temporary() method.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

StevenACoffman, jaitaiwan, and warrenguyrain reacted with thumbs up emoji
All reactions
  • 👍 3 reactions
Comment thread conn.go
}
c.WriteControl(CloseMessage, data, time.Now().Add(writeWait))
if err := c.WriteControl(CloseMessage, data, time.Now().Add(writeWait)); err != nil {
return err

@ghost ghost Aug 27, 2023

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The close message error is secondary to the protocol error. Revert to the original or use errors.Join( errors.New("websocket: " + message), c.WriteControl(CloseMessage, data, time.Now().Add(writeWait))).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

warrenguyrain reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Comment thread conn.go
if c.reader != nil {
c.reader.Close()
if err := c.reader.Close(); err != nil {
log.Printf("websocket: discarding reader close error: %v", err)

@ghost ghost Aug 27, 2023

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Return the error instead of writing the application's stderr.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

patali and warrenguyrain reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

@davidnewhall davidnewhall Feb 9, 2024

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 this comment. or take in a logger and use that.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread conn.go
h = func(code int, text string) error {
message := FormatCloseMessage(code, "")
c.WriteControl(CloseMessage, message, time.Now().Add(writeWait))
if err := c.WriteControl(CloseMessage, message, time.Now().Add(writeWait)); err != nil {

@ghost ghost Aug 27, 2023

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function h is called before returning a close error to the application. The close error is primary to any error writing the close message. Revert h to the original.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread conn.go
if err == ErrCloseSent {
return nil
} else if e, ok := err.(net.Error); ok && e.Temporary() {
} else if _, ok := err.(net.Error); ok {

@ghost ghost Aug 27, 2023

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In practice, the original code returned nil for deadline exceeded errors. The new code returns nil for all network errors. Change to detect deadline exceeded errors only.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread server.go
if brw.Reader.Buffered() > 0 {
netConn.Close()
if err := netConn.Close(); err != nil {
log.Printf("websocket: failed to close network connection: %v", err)

@ghost ghost Aug 27, 2023

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failure to close network connection is secondary to early write by client. Write to application's stderr is unfriendly. Revert to original or use errors.Join.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread server.go
netConn.SetDeadline(time.Time{})
if err := netConn.SetDeadline(time.Time{}); err != nil {
if err := netConn.Close(); err != nil {
log.Printf("websocket: failed to close network connection: %v", err)

@ghost ghost Aug 27, 2023

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deadline error is primary to close error. Either ignore close error or use errors.Join. This comment applies to other calls to SetDeadline in this file.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread server.go
panic(err)
}
if err := bw.Flush(); err != nil {
log.Printf("websocket: bufioWriterBuffer: Flush: %v", err)

@ghost ghost Aug 27, 2023 •
edited by ghost
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flush() will not return an error because writeHook.Write always returns a nil error. Change to panic to indicate that no error is expected here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jbarlowbignell jbarlowbignell mentioned this pull request Sep 19, 2023
[BUG] Debug messages are printed to log #852
Closed
1 task done
nono referenced this pull request in linagora/cozy-stack Nov 6, 2023
@nono
fix(deps): update module github.com/gorilla/websocket to v1.5.1 (#4204)
984e997
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/gorilla/websocket](https://togithub.com/gorilla/websocket)
| require | patch | `v1.5.0` -> `v1.5.1` |

---

### Release Notes

<details>
<summary>gorilla/websocket (github.com/gorilla/websocket)</summary>

###
[`v1.5.1`](https://togithub.com/gorilla/websocket/releases/tag/v1.5.1)

[Compare
Source](https://togithub.com/gorilla/websocket/compare/v1.5.0...v1.5.1)

#### What's Changed

- Add check for Sec-WebSocket-Key header by
[@&#8203;hirasawayuki](https://togithub.com/hirasawayuki) in
[https://github.com/gorilla/websocket/pull/752](https://togithub.com/gorilla/websocket/pull/752)
- Changed the method name UnderlyingConn to NetConn by
[@&#8203;JWSong](https://togithub.com/JWSong) in
[https://github.com/gorilla/websocket/pull/773](https://togithub.com/gorilla/websocket/pull/773)
- remove all versions < 1.16 and add 1.18 by
[@&#8203;ChannyClaus](https://togithub.com/ChannyClaus) in
[https://github.com/gorilla/websocket/pull/793](https://togithub.com/gorilla/websocket/pull/793)
- Check for and report bad protocol in TLSClientConfig.NextProtos by
[@&#8203;ChannyClaus](https://togithub.com/ChannyClaus) in
[https://github.com/gorilla/websocket/pull/788](https://togithub.com/gorilla/websocket/pull/788)
- check err before GotConn for trace by
[@&#8203;junnplus](https://togithub.com/junnplus) in
[https://github.com/gorilla/websocket/pull/798](https://togithub.com/gorilla/websocket/pull/798)
- Update README.md by
[@&#8203;coreydaley](https://togithub.com/coreydaley) in
[https://github.com/gorilla/websocket/pull/839](https://togithub.com/gorilla/websocket/pull/839)
- Correct way to save memory using write buffer pool and freeing
net.http default buffers by [@&#8203;FMLS](https://togithub.com/FMLS) in
[https://github.com/gorilla/websocket/pull/761](https://togithub.com/gorilla/websocket/pull/761)
- Update go version & add verification/testing tools by
[@&#8203;coreydaley](https://togithub.com/coreydaley) in
[https://github.com/gorilla/websocket/pull/840](https://togithub.com/gorilla/websocket/pull/840)
- update golang.org/x/net by
[@&#8203;coreydaley](https://togithub.com/coreydaley) in
[https://github.com/gorilla/websocket/pull/856](https://togithub.com/gorilla/websocket/pull/856)
- update GitHub workflows by
[@&#8203;coreydaley](https://togithub.com/coreydaley) in
[https://github.com/gorilla/websocket/pull/857](https://togithub.com/gorilla/websocket/pull/857)

#### New Contributors

- [@&#8203;hirasawayuki](https://togithub.com/hirasawayuki) made their
first contribution in
[https://github.com/gorilla/websocket/pull/752](https://togithub.com/gorilla/websocket/pull/752)
- [@&#8203;JWSong](https://togithub.com/JWSong) made their first
contribution in
[https://github.com/gorilla/websocket/pull/773](https://togithub.com/gorilla/websocket/pull/773)
- [@&#8203;ChannyClaus](https://togithub.com/ChannyClaus) made their
first contribution in
[https://github.com/gorilla/websocket/pull/793](https://togithub.com/gorilla/websocket/pull/793)
- [@&#8203;junnplus](https://togithub.com/junnplus) made their first
contribution in
[https://github.com/gorilla/websocket/pull/798](https://togithub.com/gorilla/websocket/pull/798)
- [@&#8203;coreydaley](https://togithub.com/coreydaley) made their first
contribution in
[https://github.com/gorilla/websocket/pull/839](https://togithub.com/gorilla/websocket/pull/839)
- [@&#8203;FMLS](https://togithub.com/FMLS) made their first
contribution in
[https://github.com/gorilla/websocket/pull/761](https://togithub.com/gorilla/websocket/pull/761)

**Full Changelog**:
gorilla/websocket@v1.5.0...v1.5.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 6am on Monday" in timezone
Europe/Paris, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/cozy/cozy-stack).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMS41IiwidXBkYXRlZEluVmVyIjoiMzcuMzEuNSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9-->
@ghost ghost mentioned this pull request Nov 8, 2023
Do not handle network error in SetCloseHandler() #863
Merged
@rschmied

rschmied commented Nov 15, 2023

Copy link
Copy Markdown

Are the comments made by "Ghost" being addressed / considered? From reading it, there's quite a few things that have changed to the worse, I am in particular bitten by #852 Just wondering...

warrenguyrain, ejoubaud, paul-leydier, and mluna-again reacted with thumbs up emoji
All reactions
  • 👍 4 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@apoorvajagtap apoorvajagtap mentioned this pull request Feb 14, 2024
Return errors instead of printing to logs #897
Merged
4 of 12 tasks
apoorvajagtap added a commit to apoorvajagtap/gorilla-websocket that referenced this pull request Apr 4, 2024
@apoorvajagtap
Revert " Update go version & add verification/testing tools (gorilla#840
b4fae1f
)"

This reverts commit 666c197.
apoorvajagtap added a commit to apoorvajagtap/gorilla-websocket that referenced this pull request Apr 4, 2024
@apoorvajagtap
Revert " Update go version & add verification/testing tools (gorilla#840
658336d
)"

This reverts commit 666c197.
apoorvajagtap added a commit to apoorvajagtap/gorilla-websocket that referenced this pull request Apr 4, 2024
@apoorvajagtap
Revert " Update go version & add verification/testing tools (gorilla#840
41b7285
)"

This reverts commit 666c197.
apoorvajagtap added a commit that referenced this pull request May 1, 2024
@apoorvajagtap
Revert " Update go version & add verification/testing tools (#840)"
b2c246b
This reverts commit 666c197.
@paul-leydier

paul-leydier commented May 1, 2024

Copy link
Copy Markdown

Are the comments made by "Ghost" being addressed / considered? From reading it, there's quite a few things that have changed to the worse, I am in particular bitten by #852 Just wondering...

I'm in the same situation as you, I had to revert the upgrade to 1.5.1 as it printed millions of logs where none where printed before. I saw that #852 and #878 have been merged, but did not make it to a new version as of right now?

rschmied reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gorilla gorilla deleted a comment from davidnewhall May 4, 2024
algitbot pushed a commit to alpinelinux/build-server-status that referenced this pull request May 5, 2024
@Ikke
merge: deps: update module github.com/gorilla/websocket to v1.5.1
bb1975e
This MR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/gorilla/websocket](https://github.com/gorilla/websocket) | require | patch | `v1.5.0` -> `v1.5.1` |

---

### Release Notes

<details>
<summary>gorilla/websocket (github.com/gorilla/websocket)</summary>

### [`v1.5.1`](https://github.com/gorilla/websocket/releases/tag/v1.5.1)

[Compare Source](gorilla/websocket@v1.5.0...v1.5.1)

#### What's Changed

-   Add check for Sec-WebSocket-Key header by [@&#8203;hirasawayuki](https://github.com/hirasawayuki) in gorilla/websocket#752
-   Changed the method name UnderlyingConn to NetConn by [@&#8203;JWSong](https://github.com/JWSong) in gorilla/websocket#773
-   remove all versions < 1.16 and add 1.18 by [@&#8203;ChannyClaus](https://github.com/ChannyClaus) in gorilla/websocket#793
-   Check for and report bad protocol in TLSClientConfig.NextProtos by [@&#8203;ChannyClaus](https://github.com/ChannyClaus) in gorilla/websocket#788
-   check err before GotConn for trace by [@&#8203;junnplus](https://github.com/junnplus) in gorilla/websocket#798
-   Update README.md by [@&#8203;coreydaley](https://github.com/coreydaley) in gorilla/websocket#839
-   Correct way to save memory using write buffer pool and freeing net.http default buffers by [@&#8203;FMLS](https://github.com/FMLS) in gorilla/websocket#761
-   Update go version & add verification/testing tools by [@&#8203;coreydaley](https://github.com/coreydaley) in gorilla/websocket#840
-   update golang.org/x/net by [@&#8203;coreydaley](https://github.com/coreydaley) in gorilla/websocket#856
-   update GitHub workflows by [@&#8203;coreydaley](https://github.com/coreydaley) in gorilla/websocket#857

#### New Contributors

-   [@&#8203;hirasawayuki](https://github.com/hirasawayuki) made their first contribution in gorilla/websocket#752
-   [@&#8203;JWSong](https://github.com/JWSong) made their first contribution in gorilla/websocket#773
-   [@&#8203;ChannyClaus](https://github.com/ChannyClaus) made their first contribution in gorilla/websocket#793
-   [@&#8203;junnplus](https://github.com/junnplus) made their first contribution in gorilla/websocket#798
-   [@&#8203;coreydaley](https://github.com/coreydaley) made their first contribution in gorilla/websocket#839
-   [@&#8203;FMLS](https://github.com/FMLS) made their first contribution in gorilla/websocket#761

**Full Changelog**: gorilla/websocket@v1.5.0...v1.5.1

</details>

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

&nbsp;
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yODYuMSIsInVwZGF0ZWRJblZlciI6IjM3LjI4Ni4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->

See merge request alpine/infra/build-server-status!9
algitbot pushed a commit to alpinelinux/build-server-status that referenced this pull request Sep 15, 2024
@Ikke
merge: deps: update module github.com/gorilla/websocket to v1.5.3
1d6ff5c
This MR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/gorilla/websocket](https://github.com/gorilla/websocket) | require | patch | `v1.5.1` -> `v1.5.3` |

---

### Release Notes

<details>
<summary>gorilla/websocket (github.com/gorilla/websocket)</summary>

### [`v1.5.3`](https://github.com/gorilla/websocket/releases/tag/v1.5.3)

[Compare Source](gorilla/websocket@v1.5.2...v1.5.3)

#### Important change

This reverts the websockets package back to gorilla/websocket@931041c

#### What's Changed

-   Fixes subprotocol selection (aling with rfc6455) by [@&#8203;KSDaemon](https://github.com/KSDaemon) in gorilla/websocket#823
-   Update README.md, replace master to main by [@&#8203;mstmdev](https://github.com/mstmdev) in gorilla/websocket#862
-   Use status code constant by [@&#8203;mstmdev](https://github.com/mstmdev) in gorilla/websocket#864
-   conn.go: default close handler should not return ErrCloseSent. by [@&#8203;pnx](https://github.com/pnx) in gorilla/websocket#865
-   fix: replace ioutil.readfile with os.readfile by [@&#8203;rfyiamcool](https://github.com/rfyiamcool) in gorilla/websocket#868
-   fix: add comment for the readBufferSize and writeBufferSize by [@&#8203;rfyiamcool](https://github.com/rfyiamcool) in gorilla/websocket#869
-   Remove noisy printf in NextReader() and beginMessage() by [@&#8203;bcreane](https://github.com/bcreane) in gorilla/websocket#878
-   docs(echoreadall): fix function echoReadAll comment by [@&#8203;XdpCs](https://github.com/XdpCs) in gorilla/websocket#881
-   make tests parallel by [@&#8203;ninedraft](https://github.com/ninedraft) in gorilla/websocket#872
-   Upgrader.Upgrade: use http.ResposnseController by [@&#8203;ninedraft](https://github.com/ninedraft) in gorilla/websocket#871
-   Do not handle network error in `SetCloseHandler()` by [@&#8203;nak3](https://github.com/nak3) in gorilla/websocket#863
-   perf: reduce timer in write_control by [@&#8203;rfyiamcool](https://github.com/rfyiamcool) in gorilla/websocket#879
-   fix: lint example code by [@&#8203;rfyiamcool](https://github.com/rfyiamcool) in gorilla/websocket#890
-   feat: format message type by [@&#8203;rfyiamcool](https://github.com/rfyiamcool) in gorilla/websocket#889
-   Remove hideTempErr to allow downstream users to check for errors like net.ErrClosed by [@&#8203;UnAfraid](https://github.com/UnAfraid) in gorilla/websocket#894
-   Do not timeout when WriteControl deadline is zero in gorilla/websocket#898
-   Excludes errchecks linter by [@&#8203;apoorvajagtap](https://github.com/apoorvajagtap) in gorilla/websocket#904
-   Return errors instead of printing to logs by [@&#8203;apoorvajagtap](https://github.com/apoorvajagtap) in gorilla/websocket#897
-   Revert " Update go version & add verification/testing tools ([#&#8203;840](gorilla/websocket#840))" by [@&#8203;apoorvajagtap](https://github.com/apoorvajagtap) in gorilla/websocket#908
-   Fixes broken random value generation by [@&#8203;apoorvajagtap](https://github.com/apoorvajagtap) in gorilla/websocket#926
-   Reverts back to v1.5.0 by [@&#8203;apoorvajagtap](https://github.com/apoorvajagtap) in gorilla/websocket#929

#### New Contributors

-   [@&#8203;KSDaemon](https://github.com/KSDaemon) made their first contribution in gorilla/websocket#823
-   [@&#8203;mstmdev](https://github.com/mstmdev) made their first contribution in gorilla/websocket#862
-   [@&#8203;pnx](https://github.com/pnx) made their first contribution in gorilla/websocket#865
-   [@&#8203;rfyiamcool](https://github.com/rfyiamcool) made their first contribution in gorilla/websocket#868
-   [@&#8203;bcreane](https://github.com/bcreane) made their first contribution in gorilla/websocket#878
-   [@&#8203;XdpCs](https://github.com/XdpCs) made their first contribution in gorilla/websocket#881
-   [@&#8203;ninedraft](https://github.com/ninedraft) made their first contribution in gorilla/websocket#872
-   [@&#8203;nak3](https://github.com/nak3) made their first contribution in gorilla/websocket#863
-   [@&#8203;UnAfraid](https://github.com/UnAfraid) made their first contribution in gorilla/websocket#894
-   [@&#8203;apoorvajagtap](https://github.com/apoorvajagtap) made their first contribution in gorilla/websocket#904

**Full Changelog**: gorilla/websocket@v1.5.1...v1.5.3

### [`v1.5.2`](https://github.com/gorilla/websocket/releases/tag/v1.5.2)

[Compare Source](gorilla/websocket@v1.5.1...v1.5.2)

#### What's Changed

-   Fixes subprotocol selection (aling with rfc6455) by [@&#8203;KSDaemon](https://github.com/KSDaemon) in gorilla/websocket#823
-   Update README.md, replace master to main by [@&#8203;mstmdev](https://github.com/mstmdev) in gorilla/websocket#862
-   Use status code constant by [@&#8203;mstmdev](https://github.com/mstmdev) in gorilla/websocket#864
-   conn.go: default close handler should not return ErrCloseSent. by [@&#8203;pnx](https://github.com/pnx) in gorilla/websocket#865
-   fix: replace ioutil.readfile with os.readfile by [@&#8203;rfyiamcool](https://github.com/rfyiamcool) in gorilla/websocket#868
-   fix: add comment for the readBufferSize and writeBufferSize by [@&#8203;rfyiamcool](https://github.com/rfyiamcool) in gorilla/websocket#869
-   Remove noisy printf in NextReader() and beginMessage() by [@&#8203;bcreane](https://github.com/bcreane) in gorilla/websocket#878
-   docs(echoreadall): fix function echoReadAll comment by [@&#8203;XdpCs](https://github.com/XdpCs) in gorilla/websocket#881
-   make tests parallel by [@&#8203;ninedraft](https://github.com/ninedraft) in gorilla/websocket#872
-   Upgrader.Upgrade: use http.ResposnseController by [@&#8203;ninedraft](https://github.com/ninedraft) in gorilla/websocket#871
-   Do not handle network error in `SetCloseHandler()` by [@&#8203;nak3](https://github.com/nak3) in gorilla/websocket#863
-   perf: reduce timer in write_control by [@&#8203;rfyiamcool](https://github.com/rfyiamcool) in gorilla/websocket#879
-   fix: lint example code by [@&#8203;rfyiamcool](https://github.com/rfyiamcool) in gorilla/websocket#890
-   feat: format message type by [@&#8203;rfyiamcool](https://github.com/rfyiamcool) in gorilla/websocket#889
-   Remove hideTempErr to allow downstream users to check for errors like net.ErrClosed by [@&#8203;UnAfraid](https://github.com/UnAfraid) in gorilla/websocket#894
-   Do not timeout when WriteControl deadline is zero in gorilla/websocket#898
-   Excludes errchecks linter by [@&#8203;apoorvajagtap](https://github.com/apoorvajagtap) in gorilla/websocket#904
-   Return errors instead of printing to logs by [@&#8203;apoorvajagtap](https://github.com/apoorvajagtap) in gorilla/websocket#897
-   Revert " Update go version & add verification/testing tools ([#&#8203;840](gorilla/websocket#840))" by [@&#8203;apoorvajagtap](https://github.com/apoorvajagtap) in gorilla/websocket#908
-   Fixes broken random value generation by [@&#8203;apoorvajagtap](https://github.com/apoorvajagtap) in gorilla/websocket#926

#### New Contributors

-   [@&#8203;KSDaemon](https://github.com/KSDaemon) made their first contribution in gorilla/websocket#823
-   [@&#8203;mstmdev](https://github.com/mstmdev) made their first contribution in gorilla/websocket#862
-   [@&#8203;pnx](https://github.com/pnx) made their first contribution in gorilla/websocket#865
-   [@&#8203;rfyiamcool](https://github.com/rfyiamcool) made their first contribution in gorilla/websocket#868
-   [@&#8203;bcreane](https://github.com/bcreane) made their first contribution in gorilla/websocket#878
-   [@&#8203;XdpCs](https://github.com/XdpCs) made their first contribution in gorilla/websocket#881
-   [@&#8203;ninedraft](https://github.com/ninedraft) made their first contribution in gorilla/websocket#872
-   [@&#8203;nak3](https://github.com/nak3) made their first contribution in gorilla/websocket#863
-   [@&#8203;UnAfraid](https://github.com/UnAfraid) made their first contribution in gorilla/websocket#894
-   [@&#8203;apoorvajagtap](https://github.com/apoorvajagtap) made their first contribution in gorilla/websocket#904

**Full Changelog**: gorilla/websocket@v1.5.1...v1.5.2

</details>

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

&nbsp;
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yODYuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQxOS4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->

See merge request alpine/infra/build-server-status!14
@bbrks bbrks mentioned this pull request Nov 24, 2026
Documented: math/rand → crypto/rand mask key fix (CWE-338, never CVE'd) #1024
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@apoorvajagtap apoorvajagtap apoorvajagtap approved these changes
@AlexVulaj AlexVulaj Awaiting requested review from AlexVulaj
+3 more reviewers
@davidnewhall davidnewhall davidnewhall left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size/XXL

Projects

Gorilla Web Toolkit
Status: ✅ Done

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@coreydaley @rschmied @paul-leydier @davidnewhall @apoorvajagtap
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.