gnet @ v2.2.0
integrity
- size
- 141.7 KiB
- downloaded
- last checked
- overlays
- go
- detected
- go module github.com/panjf2000/gnet/v2
release notes
[!CAUTION] This release includes breaking changes.
🧨 Breaking changes
- opt: redefine AsyncCallback, pass in the error message 691e07747d11e3be90fb3b2996deb19448aa1e0e
🚀 Features
- opt: implement Close() for gnet.Conn to make it compatible with net.Conn (#348)
- feat: implement a new API to convert and add net.Conn into gnet.Client c296922d171e64bcd0a97b1bf7eeb7adc747dad6
- allow creation of multiple engines on the same protocol and port (#419)
- feat: add multicast UDP listener support (#412)
🛩 Enhancements
- opt: reduce the memory allocation when a connection is idle 27667f3caad72fed296f86a2a5f624253ce01a56
🐛 Bugfixes
- bug: set the correct number of bytes written by conn.WriteTo() (#344)
- bug: fix the issue of discarding bytes in buffer mistakenly in Conn.Read() 02820252e2e2a74ece265379386441dd1d4df2d9
- bug: bind socket only when it's in passive mode (#373)
- bug: fix the compile error on linux/mips f2e2fa31adc7694bc45b62aec261ccbe6d77819f
- bug: return io.EOF in Read(), comply with io.Reader and io.Writer 3c3c519b8c57e750231db3d191e7257b5a3cf51d
- bug: fix the issue failing to listen on 0.0.0.0 on linux/arm64 c9eeca1ee0a2d4cce1702d6c529f523fd3786e43
- opt: avoid the long hanging when the peer crashes c138ac53b732540dcff6364d12823f5b6a8f10a8
- opt: put the bytes of net.Addr.Zone back to pool when connection is closed 50406b34552ef6fb86795a9ee6c0e54ad71ae322
🗃 Misc
- opt: refine the logic of eventfd in poller 38aa2e0a03ca438c91100c16029ee0b7e6859c07
- opt: fieldalignment, optimization from 144 to 104 byte f70489f555c7f627fcd268907f316dd02425da61
- opt: improve the internal packages of math and bytes f1727999f277e995e8a33319a8e772d9b17b75c9
Full Changelog: https://github.com/panjf2000/gnet/compare/v2.0.0...v2.2.0
Thanks to all these contributors: @0-haha, @JemmyH, @ccssrryy, @jdamick, @leki75, @panjf2000, @zhongweikang and zhongweikang for making this release possible.
download
unix · zip
curl -fL -o v2.2.0.zip https://ratatoskr.space/pkg/gnet/v2.2.0.zip
printf '%s %s\n' '44ba50ef97288e545d75d9453c5aa90fb9ed7aa0ba32eb2ba5f394c635d5d5ce' 'v2.2.0.zip' | sha256sum -c -
windows · zip
$url = "https://ratatoskr.space/pkg/gnet/v2.2.0.zip"
$out = "v2.2.0.zip"
Invoke-WebRequest -Uri $url -OutFile $out
if ((Get-FileHash $out -Algorithm SHA256).Hash.ToLowerInvariant() -ne "44ba50ef97288e545d75d9453c5aa90fb9ed7aa0ba32eb2ba5f394c635d5d5ce") { throw "sha256 mismatch" }
unix · tar.gz
curl -fL -o v2.2.0.tar.gz https://ratatoskr.space/pkg/gnet/v2.2.0.tar.gz
printf '%s %s\n' '4af4de68842a99247bbd3f3b2cb37c305cae0a7d24a7251e6a5504151bd433ab' 'v2.2.0.tar.gz' | sha256sum -c -
windows · tar.gz
$url = "https://ratatoskr.space/pkg/gnet/v2.2.0.tar.gz"
$out = "v2.2.0.tar.gz"
Invoke-WebRequest -Uri $url -OutFile $out
if ((Get-FileHash $out -Algorithm SHA256).Hash.ToLowerInvariant() -ne "4af4de68842a99247bbd3f3b2cb37c305cae0a7d24a7251e6a5504151bd433ab") { throw "sha256 mismatch" }
download via yggdrasil mesh
unix · zip
curl -fL -o v2.2.0.zip http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/gnet/v2.2.0.zip
printf '%s %s\n' '44ba50ef97288e545d75d9453c5aa90fb9ed7aa0ba32eb2ba5f394c635d5d5ce' 'v2.2.0.zip' | sha256sum -c -
windows · zip
$url = "http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/gnet/v2.2.0.zip"
$out = "v2.2.0.zip"
Invoke-WebRequest -Uri $url -OutFile $out
if ((Get-FileHash $out -Algorithm SHA256).Hash.ToLowerInvariant() -ne "44ba50ef97288e545d75d9453c5aa90fb9ed7aa0ba32eb2ba5f394c635d5d5ce") { throw "sha256 mismatch" }
unix · tar.gz
curl -fL -o v2.2.0.tar.gz http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/gnet/v2.2.0.tar.gz
printf '%s %s\n' '4af4de68842a99247bbd3f3b2cb37c305cae0a7d24a7251e6a5504151bd433ab' 'v2.2.0.tar.gz' | sha256sum -c -
windows · tar.gz
$url = "http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/gnet/v2.2.0.tar.gz"
$out = "v2.2.0.tar.gz"
Invoke-WebRequest -Uri $url -OutFile $out
if ((Get-FileHash $out -Algorithm SHA256).Hash.ToLowerInvariant() -ne "4af4de68842a99247bbd3f3b2cb37c305cae0a7d24a7251e6a5504151bd433ab") { throw "sha256 mismatch" }
| artifact | format | size | hashes |
|---|---|---|---|
| v2.2.0.zip | zip | 140.9 KiB |
blake3-24 e0b525fdadaee9470d8129cb7216d471ba353291b42c3b8b
sha256 44ba50ef97288e545d75d9453c5aa90fb9ed7aa0ba32eb2ba5f394c635d5d5ce
sha1 2ce291d1a5c9b832f2594a977ecf422500a64acb
|
| v2.2.0.tar.gz | tar.gz | 77.8 KiB |
blake3-24 a6ddfa21c528d1e0fef4b2f537759953e5c5119c010b9104
sha256 4af4de68842a99247bbd3f3b2cb37c305cae0a7d24a7251e6a5504151bd433ab
sha1 bf553e75a1d2d52221d1a9869025a929b39fda00
|
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.2.0.zip | zip | 143.3 KiB |
blake3-24 ee8814f6ed8d1f5c1be664a1a343647b12f2567273cdc7a6
sha256 0ac7ec10b3226b10245a5907dae557dba587d986140a767f75cd514150fdaee1
sha1 fcabb3101d873231e0b819fb53479df7399f4c2f
|
install
bazel
http_archive(
name = "gnet",
urls = ["https://ratatoskr.space/pkg/gnet/v2.2.0.tar.gz"],
integrity = "sha256-SvTeaIQqmSR7vT87LLN8MFyuCn0kpyUealUEFRvUM6s=",
strip_prefix = "gnet-v2.2.0",
)
zig
.url = "https://ratatoskr.space/pkg/gnet/v2.2.0.tar.gz",
go
GOPROXY=https://ratatoskr.space GOSUMDB=off go get ratatoskr.space/pkg/gnet/v2@v2.2.0
install via yggdrasil mesh
bazel
http_archive(
name = "gnet",
urls = ["http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/gnet/v2.2.0.tar.gz"],
integrity = "sha256-SvTeaIQqmSR7vT87LLN8MFyuCn0kpyUealUEFRvUM6s=",
strip_prefix = "gnet-v2.2.0",
)
zig
.url = "http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/gnet/v2.2.0.tar.gz",
go
GOPROXY=http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg GOSUMDB=off GOINSECURE=14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/* go get 14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/gnet/v2@v2.2.0