gnet @ v2.6.0
integrity
- size
- 185.1 KiB
- downloaded
- last checked
- overlays
- go
- detected
- go module github.com/panjf2000/gnet/v2
release notes
[!IMPORTANT] As of this release, the minimum required Go version to run
gnetis 1.20!
🚀 Features
- feat: support SO_BINDTODEVICE on Linux (#650)
- feat: support configurable I/O chunk to drain at a time in edge-triggered mode (#646)
🛩 Enhancements
- chore: use errors.Is and errors.Join for customized errors (#640)
- opt: close file descriptor after OnClose() for UDP along with code improvement (#624)
- opt: close file descriptor after OnClose() (#622)
- opt: bring down the
maxBytesTransferETand defer write in ET mode (#606) - opt: clamp the event-loops in ET mode to avaoid starving (#599)
- opt: reduce duplicate code for I/O reactors (#590)
🐛 Bugfixes
- bug: fix Conn.Next not safe (#648) (#649)
- opt: close file descriptor after OnClose() for UDP along with code improvement (#624)
- opt: close file descriptor after OnClose() (#622)
- bug: fix the wrong default behavior of TCPNoDelay on client side (#619)
- bug: fix Conn.Next and Conn.Peek panic On Unix (#616)
- opt: fix compilation errors on *BSD (#593)
📚 Documentation
- opt: bump up minimum required Go version to 1.20 (#638)
- bug: fix the wrong default behavior of TCPNoDelay on client side (#619)
🗃 Misc
- test: add test for SO_BINDTODEVICE with TCP (#652)
- chore: use errors.Is and errors.Join for customized errors (#640)
- test: increase the test code coverage a little bit (#618)
- chore: upgrade modules and update .gitignore (#613)
Thanks to all these contributors: @panjf2000, @serious-snow and @zhongweikang for making this release possible.
download
unix · zip
curl -fL -o v2.6.0.zip https://ratatoskr.space/pkg/gnet/v2.6.0.zip
printf '%s %s\n' '2b80f0a58e81346aea47199198bd246261df45cebef08b86395316d671e00540' 'v2.6.0.zip' | sha256sum -c -
windows · zip
$url = "https://ratatoskr.space/pkg/gnet/v2.6.0.zip"
$out = "v2.6.0.zip"
Invoke-WebRequest -Uri $url -OutFile $out
if ((Get-FileHash $out -Algorithm SHA256).Hash.ToLowerInvariant() -ne "2b80f0a58e81346aea47199198bd246261df45cebef08b86395316d671e00540") { throw "sha256 mismatch" }
unix · tar.gz
curl -fL -o v2.6.0.tar.gz https://ratatoskr.space/pkg/gnet/v2.6.0.tar.gz
printf '%s %s\n' '489eec278b9f38b9d070bb6c70f7eb4c7b79f1d25ef89e7012b2431f247e4faa' 'v2.6.0.tar.gz' | sha256sum -c -
windows · tar.gz
$url = "https://ratatoskr.space/pkg/gnet/v2.6.0.tar.gz"
$out = "v2.6.0.tar.gz"
Invoke-WebRequest -Uri $url -OutFile $out
if ((Get-FileHash $out -Algorithm SHA256).Hash.ToLowerInvariant() -ne "489eec278b9f38b9d070bb6c70f7eb4c7b79f1d25ef89e7012b2431f247e4faa") { throw "sha256 mismatch" }
download via yggdrasil mesh
unix · zip
curl -fL -o v2.6.0.zip http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/gnet/v2.6.0.zip
printf '%s %s\n' '2b80f0a58e81346aea47199198bd246261df45cebef08b86395316d671e00540' 'v2.6.0.zip' | sha256sum -c -
windows · zip
$url = "http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/gnet/v2.6.0.zip"
$out = "v2.6.0.zip"
Invoke-WebRequest -Uri $url -OutFile $out
if ((Get-FileHash $out -Algorithm SHA256).Hash.ToLowerInvariant() -ne "2b80f0a58e81346aea47199198bd246261df45cebef08b86395316d671e00540") { throw "sha256 mismatch" }
unix · tar.gz
curl -fL -o v2.6.0.tar.gz http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/gnet/v2.6.0.tar.gz
printf '%s %s\n' '489eec278b9f38b9d070bb6c70f7eb4c7b79f1d25ef89e7012b2431f247e4faa' 'v2.6.0.tar.gz' | sha256sum -c -
windows · tar.gz
$url = "http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/gnet/v2.6.0.tar.gz"
$out = "v2.6.0.tar.gz"
Invoke-WebRequest -Uri $url -OutFile $out
if ((Get-FileHash $out -Algorithm SHA256).Hash.ToLowerInvariant() -ne "489eec278b9f38b9d070bb6c70f7eb4c7b79f1d25ef89e7012b2431f247e4faa") { throw "sha256 mismatch" }
| artifact | format | size | hashes |
|---|---|---|---|
| v2.6.0.zip | zip | 184.8 KiB |
blake3-24 d9e139d67d0c334943f41c277fae2c6b8d331d396c35bb51
sha256 2b80f0a58e81346aea47199198bd246261df45cebef08b86395316d671e00540
sha1 ac15de26faa4809713f335d27a2465776e70f835
|
| v2.6.0.tar.gz | tar.gz | 103.3 KiB |
blake3-24 828b76c15e1e175dcbbe85932d6f9fd073a408336a5bd351
sha256 489eec278b9f38b9d070bb6c70f7eb4c7b79f1d25ef89e7012b2431f247e4faa
sha1 5326ad8fdcd144cc95e21dbee7176652a45b7e78
|
go module archive
module zip with the module path rewritten to this mirror; fetched by go get through the
GOPROXY route
| artifact | format | size | hashes |
|---|---|---|---|
| v2.6.0.zip | zip | 187.9 KiB |
blake3-24 efce64515c9b9cf2a57bdb95139808e679921e39b5884f97
sha256 d22b49c8942ee5d5924af89a86e6d1639c64af2b57dc875799d831142660aaf6
sha1 6797e91f2b44a74b2125bb096703e49a9f0418ad
|
install
bazel
http_archive(
name = "gnet",
urls = ["https://ratatoskr.space/pkg/gnet/v2.6.0.tar.gz"],
integrity = "sha256-SJ7sJ4ufOLnQcLtscPfrTHt58dJe+J5wErJDHyR+T6o=",
strip_prefix = "gnet-v2.6.0",
)
zig
.url = "https://ratatoskr.space/pkg/gnet/v2.6.0.tar.gz",
go
GOPROXY=https://ratatoskr.space GOSUMDB=off go get ratatoskr.space/pkg/gnet/v2@v2.6.0
install via yggdrasil mesh
bazel
http_archive(
name = "gnet",
urls = ["http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/gnet/v2.6.0.tar.gz"],
integrity = "sha256-SJ7sJ4ufOLnQcLtscPfrTHt58dJe+J5wErJDHyR+T6o=",
strip_prefix = "gnet-v2.6.0",
)
zig
.url = "http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/gnet/v2.6.0.tar.gz",
go
GOPROXY=http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg GOSUMDB=off GOINSECURE=14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/* go get 14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/gnet/v2@v2.6.0