Skip to content

Commit

Permalink
fix translate network_filters.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
vgbhfive committed Nov 15, 2020
1 parent 08c670c commit 4433f33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/root/intro/arch_overview/listeners/network_filters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
网络 (L3/L4) 过滤器
=======================

如在 :ref:`监听器 <arch_overview_listeners>` 部分的描述一样,网络 (L3/L4) 过滤器构成了 Envoy 连接处理的核心。
如在 :ref:`监听器 <arch_overview_listeners>` 部分的描述一样,网络层 (L3/L4) 过滤器构成了 Envoy 连接处理的核心。
过滤器 API 允许混合不同的过滤器组合,并匹配和附加到给定的监听器。
下面就有三种不同的网络过滤器:

* **读取**: 当 Envoy 从下游连接接收数据时,将会调用读取过滤器。
* **写入**: 当 Envoy 将要向下游发送数据时,将会调用写入过滤器。
* **读取/写入**: 读取/写入过滤器会在 Envoy 从下游连接接收数据或者向下游连接写入数据时都会被调用。

网络过滤器的 API 都相对简单,因为过滤器在原始字节和少量连接事件上运行(比如 TLS 握手完成、本地或远程断开连接)。
网络层过滤器的 API 都相对简单,因为过滤器最终会对原始字节和少量连接事件进行操作(比如 TLS 握手完成、本地或远程断开连接)。
可停止链中的过滤器并继续执行后续的过滤器。
这允许去应对更复杂的业务场景,比如调用 :ref:`限速服务 <arch_overview_global_rate_limit>` 。
同时网络筛选器可以在单个下游连接的上下文中彼此共享状态(静态和动态)。
Expand Down

0 comments on commit 4433f33

Please sign in to comment.