This project is mirrored from https://github.com/nhooyr/websocket.
Pull mirroring updated .
- Apr 09, 2024
-
-
Jacob authored
This is a cleaner solution for the fix in #438 thanks to the fact that Go 1.19 now is the default and the atomic.Int64 types are automatically aligned correctly on 32 bit systems. Using this also means that xsync.Int64 can be removed. The new atomic.Int64 type solves the issue and should be quite a lot faster as it avoids the interface conversion.
-
- Apr 07, 2024
-
-
Anmol Sethi authored
-
- Mar 07, 2024
-
-
Anmol Sethi authored
-
- Feb 26, 2024
-
-
Grigorii Khvatskii authored
On some 32-bit architectures, 64-bit atomic operations panic when the value is not aligned properly. In this package, this causes netConn operations to panic when compiling with GOARCH=386, since netConn does atomic operations with int64 values in the netConn struct (namely, with readExpired and writeExpired). This commit fixes this by moving readExpired and writeExpired to the beginning of the struct, which makes them properly aligned.
-
- Oct 19, 2023
-
-
Anmol Sethi authored
Glad no one ran into this in production.
-
- Oct 13, 2023
-
-
Anmol Sethi authored
Closes #367
-
photostorm authored
-
Anmol Sethi authored
-
- Jan 09, 2021
-
-
Anmol Sethi authored
Updates #255
-
Anmol Sethi authored
Closes #245
-
- Jul 05, 2020
-
-
Anmol Sethi authored
Closes #243
-
- May 18, 2020
-
-
Anmol Sethi authored
NetConn has to close the connection to interrupt in progress reads and writes. However, it can block reads and writes that occur after the deadline instead of closing the connection. Closes #228
-
- Feb 16, 2020
-
- Feb 09, 2020
-
-
Anmol Sethi authored
Closes #182
-
- Nov 29, 2019
-
-
Anmol Sethi authored
-
Anmol Sethi authored
-
- Oct 11, 2019
-
-
Anmol Sethi authored
- For JS we ensure we indicate which size initiated the close first from our POV - For normal Go, concurrent closes block until the first one succeeds instead of returning early
-
- Oct 10, 2019
-
-
Anmol Sethi authored
-
- Oct 09, 2019
-
-
Anmol Sethi authored
-
Anmol Sethi authored
I changed my mind after #103 as browsers include a wasClean event to indicate whether the connection was closed cleanly. From my tests, if a server using this library prior to this commit initiates the close handshake, wasClean will be false for the browser as the connection was closed before it could respond with a close frame. Thus, I believe it's necessary to fully implement the close handshake. @stephenyama You'll enjoy this.
-
- Sep 29, 2019
-
-
Anmol Sethi authored
math/rand was being used inappropiately and did not have a init function for every file it was used in.
-
- Sep 27, 2019
-
-
Oleg Kovalov authored
Closes #150
-
Anmol Sethi authored
- Also allows SetReadLimit to be called concurrently which is a nice touch
-
Anmol Sethi authored
Closes #153
-
- Sep 24, 2019
-
-
Anmol Sethi authored
-
- Sep 23, 2019
-
-
Anmol Sethi authored
-
Anmol Sethi authored
Realized I can at least make the Reader/Writer/SetReadLimit methods work as expected even if they're not perfect.
-
- Sep 22, 2019
-
-
Anmol Sethi authored
Updates #88
-
Anmol Sethi authored
-
- Sep 21, 2019
-
-
Anmol Sethi authored
Closes #121
-
- Sep 04, 2019
-
-
Anmol Sethi authored
The boys in the office hated it. Highly unfortunate but makes sense as it seems confusing.
-
Anmol Sethi authored
Will be cleaner in GitHub as the README.md is the first thing you will see instead of a massive directory listing.
-
Anmol Sethi authored
Closes #134
-
- Sep 01, 2019
-
-
Anmol Sethi authored
Closes #125 Minor API change, will need to document clearly in release notes.
-
- Aug 29, 2019
-
-
Anmol Sethi authored
Also simplified and refactored the Conn tests. More changes soon.
-
- Aug 21, 2019
-
-
Anmol Sethi authored
-
- Aug 15, 2019
-
-
Anmol Sethi authored
Closes #113
-
- Aug 07, 2019
-
-
Toyam Cox authored
Closes #111 Closes #112
-
- Jul 20, 2019
-
-
Anmol Sethi authored
-
- Jul 19, 2019
-
-
Anmol Sethi authored
-