Skip to content

Gnet v2.2.0

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

Changelogs

  • allow creation of multiple engines on the same protocol and port (#419)
  • opt: byte alignment, optimization from 144 to 136 byte (#369)
  • fix, unix socket bind should be only used in passive mode (#373)
  • Fix gnet.Conn not compatible with net.Conn on method Close (#348)
  • fix the bug of the return value of conn.WriteTo (#344)

馃Ж 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.