Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WriteMessage and WriteControl do not check error from SetWriteDeadline [bug] #705

Open
rittneje opened this issue Jun 28, 2021 · 1 comment
Labels

Comments

@rittneje
Copy link

The SetWriteDeadline method from net.Conn can return an error. https://golang.org/pkg/net/#Conn

However, this library neglects to check it.

c.conn.SetWriteDeadline(deadline)

c.conn.SetWriteDeadline(deadline)

@rittneje rittneje added the bug label Jun 28, 2021
kevinlincg added a commit to kevinlincg/websocket that referenced this issue Jan 24, 2022
Remove writeDealine , use net/Conn SetWriteDeadline and handle error to user.
@kevinlincg kevinlincg mentioned this issue Jan 24, 2022
@hulkingshtick
Copy link

This is fixed. I searched the code and cannot find any calls that ignore errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🏗 In progress
Development

Successfully merging a pull request may close this issue.

4 participants