Skip to content

Gnet v2.2.0, 5 Centimeters per Second

Compare
Choose a tag to compare
@github-actions github-actions released this 03 Dec 13:47
· 191 commits to refs/heads/master since this release

wp3209489-makoto-shinkai-background

Caution

This release includes breaking changes.

🧨 Breaking changes

  • opt: redefine AsyncCallback, pass in the error message 691e077

🚀 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 c296922
  • 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 27667f3

🐛 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() 0282025
  • bug: bind socket only when it's in passive mode (#373)
  • bug: fix the compile error on linux/mips f2e2fa3
  • bug: return io.EOF in Read(), comply with io.Reader and io.Writer 3c3c519
  • bug: fix the issue failing to listen on 0.0.0.0 on linux/arm64 c9eeca1
  • opt: avoid the long hanging when the peer crashes c138ac5
  • opt: put the bytes of net.Addr.Zone back to pool when connection is closed 50406b3

🗃 Misc

  • opt: refine the logic of eventfd in poller 38aa2e0
  • opt: fieldalignment, optimization from 144 to 104 byte f70489f
  • opt: improve the internal packages of math and bytes f172799

Full Changelog: 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.