Skip to content

Commit

Permalink
Add new blog for gnet v2.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
panjf2000 committed Nov 10, 2024
1 parent 2fb9a89 commit c930f00
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions blog/2023-07-01-announcing-gnet-v2-3-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,5 @@ geomean ² +0.00%
While we have performed sufficient testing on `matrix`, we are still using `map` as the default connection storage in this RC version for the sake of caution, but you can enable the new data structure by specifying build tags: -tags=gc_opt. This can be considered as a precautionary measure so that in case `matrix` has any unexpected bugs, you can quickly fall back to the default `map`. We will consider promoting `matrix` to be the default storage for connections in a subsequent official release.

Another significant leap is [#461](https://github.com/panjf2000/gnet/pull/461), you can now run `gnet` on Windows, it should be noted that the Windows version of `gnet` is intended for development purposes and is not recommended for use in production.

Visit the [release notes](https://github.com/panjf2000/gnet/releases/tag/v2.3.0) for more details.
2 changes: 2 additions & 0 deletions blog/2024-04-22-announcing-gnet-v2-5-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ Another useful new feature is [#578](https://github.com/panjf2000/gnet/pull/578)

In addition to these two major features, we've also made a good deal of code optimizations: refactoring and streamlining the core code, as well as optimising the structure.

Visit the [release notes](https://github.com/panjf2000/gnet/releases/tag/v2.5.0) for more details.

P.S. Follow me on Twitter [@panjf2000](https://twitter.com/panjf2000) to get the latest updates about gnet!
22 changes: 22 additions & 0 deletions blog/2024-11-09-announcing-gnet-v2-6-0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
last_modified_on: "2024-11-09"
id: announcing-gnet-v2-6-0
title: Announcing gnet v2.6.0
description: "Hello World! We present you, gnet v2.6.0!"
author_github: https://github.com/panjf2000
tags: ["type: announcement", "domain: presentation"]
---

The `gnet` v2.6.0 is officially released!

The two major updates in this release are [feat: support configurable I/O chunk to drain at a time in edge-triggered mode](https://github.com/panjf2000/gnet/pull/646) and [feat: support SO_BINDTODEVICE on Linux](https://github.com/panjf2000/gnet/pull/650).

## Intro

In `gnet` v2.5.0, we implemented edge-triggered I/O where the default chunk to read/write per event loop is 1MB and it's a constant value. However, in some scenarios, developers may want to adjust the chunk size to optimize the performance of their applications. In this release, we've added a new feature that allows developers to configure the I/O chunk size to drain/pump at a time in edge-triggered mode. This feature is especially useful for applications that require fine-tuning the I/O chunk size to achieve better performance.

Along with this new release comes another highlight: the support for `SO_BINDTODEVICE` on Linux. This feature allows developers to bind a `gnet` server to a specific network interface on a multi-homed host, which enables them to receive unicast packets only from that particular network interface and ignore packets from other interfaces. It is particularly useful for UDP servers that only want to process unicast packets from one interface while receiving broadcast packets.

Moreover, some critical bug fixes are included in this release, which further enhances the stability and reliability of `gnet`. Thus, we recommend all users to upgrade to the latest version to enjoy the new features and improvements. For more details, please refer to the [release notes](https://github.com/panjf2000/gnet/releases/tag/v2.6.0).

P.S. Follow me on Twitter [@panjf2000](https://twitter.com/panjf2000) to get the latest updates about gnet!

0 comments on commit c930f00

Please sign in to comment.