只有 Jetty 9 NIO 吗?
Is Jetty 9 NIO only?
我将使用 Jetty 网络服务器来处理 websocket 连接。
根据 the documentation
From Jetty 9 onwards there is only one
prime Connector type (ServerConnector), which is NIO based and uses
Connection Factories to handle one or more protocols.
那么,这是否意味着 Jetty 具有用于 websockets 的特殊连接工厂并将其与基于 NIO 的主要连接器类型 (ServerConnector) 一起使用?
我不需要 "tune" 在 Jetty 中使用 NIO 处理请求。
谢谢!
这完全基于我在文档中阅读/理解的内容。
Is Jetty 9 NIO only?
显然,是的。或者至少用于与客户端的服务器端通信。 (文档的那部分仅讨论服务器端连接 类。)
So, does it mean that Jetty has special Connection Factory for websockets and uses it with prime Connector type (ServerConnector), which is NIO based?
我认为不是那个意思。事实上,我怀疑 websocket 实现使用了由其他协议(HTTP、HTTPS、AJP、SPDY)之一创建的连接。 Websockets 通过 "upgrading" 与 websocket 的初始连接工作。在请求到达 WebsocketServlet 实现(或其他)之前已经创建了一个连接。
所以websockets应该没有专门的连接工厂。当我快速查看 Jetty 源代码/javadocs 时,我找不到。
And I need nothing to "tune" in Jetty to process requests with NIO.
我认为是正确的。在幕后,websockets 实现将使用唯一的主要连接器类型......这是基于 NIO 的。
我将使用 Jetty 网络服务器来处理 websocket 连接。 根据 the documentation
From Jetty 9 onwards there is only one prime Connector type (ServerConnector), which is NIO based and uses Connection Factories to handle one or more protocols.
那么,这是否意味着 Jetty 具有用于 websockets 的特殊连接工厂并将其与基于 NIO 的主要连接器类型 (ServerConnector) 一起使用?
我不需要 "tune" 在 Jetty 中使用 NIO 处理请求。
谢谢!
这完全基于我在文档中阅读/理解的内容。
Is Jetty 9 NIO only?
显然,是的。或者至少用于与客户端的服务器端通信。 (文档的那部分仅讨论服务器端连接 类。)
So, does it mean that Jetty has special Connection Factory for websockets and uses it with prime Connector type (ServerConnector), which is NIO based?
我认为不是那个意思。事实上,我怀疑 websocket 实现使用了由其他协议(HTTP、HTTPS、AJP、SPDY)之一创建的连接。 Websockets 通过 "upgrading" 与 websocket 的初始连接工作。在请求到达 WebsocketServlet 实现(或其他)之前已经创建了一个连接。
所以websockets应该没有专门的连接工厂。当我快速查看 Jetty 源代码/javadocs 时,我找不到。
And I need nothing to "tune" in Jetty to process requests with NIO.
我认为是正确的。在幕后,websockets 实现将使用唯一的主要连接器类型......这是基于 NIO 的。