java - java http服务器上系统默认backlog值对应的值是多少?

标签 java backlog

https://docs.oracle.com/javase/8/docs/jre/api/net/httpserver/spec/com/sun/net/httpserver/HttpServer.html

backlog - 套接字积压。如果该值小于或等于零,则使用系统默认值。

系统默认值对应的值是多少?

最佳答案

它取决于操作系统。对于某些操作系统,这是一个可以由系统管理员配置的设置。

例如,Linux 的 man 2 Listen says :

Since Linux 5.4, the default in this file is 4096; in earlier kernels, the default value is 128. In kernels before 2.4.25, this limit was a hard coded value, SOMAXCONN, with the value 128.

相比之下,在 Windows 上 description backlog 参数表示:

The maximum length of the queue of pending connections. If set to SOMAXCONN, the underlying service provider responsible for sockets will set the backlog to a maximum reasonable value.

关于java - java http服务器上系统默认backlog值对应的值是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68739476/

相关文章:

java - 编译警告 - 弃用且未定义serialVersionUID

java - 使用 java 9 ea,Eclipse 无法安装并显示错误 "An error has occurred, see the log file null"

java - 如何在不使用 hibernate 覆盖以前的数据的情况下为特定列插入新行

jira - 使用更多状态自定义 Jira 看板待办事项 View

agile - Scrum:由非技术 PO 管理的待办事项中的技术项目?

java - 是否可以将多个 ORM 配置分配给一个 Java 模型?

java - Ehcache3 defaultCache-configuration 等效项

project-management - 故事图还是积压的积压?

c - listen() 忽略积压值

tfs - 在 MSF Scrum 2.2 中,在待办事项列表中提交 PBI 意味着什么?