gpt4 book ai didi

ssl - Windows 上的最大打开 ssl 连接数

转载 作者:太空宇宙 更新时间:2023-11-03 13:08:41 25 4
gpt4 key购买 nike

版本:二郎R13B

大家好

如何增加我的网络服务器能够在 Windows 上创建的 ssl 端口/句柄的数量?在 Linux 上,我能够使用以下方法成功创建大约 1000 个连接:

-env ERL_MAX_PORTS 80000 -P 268435456

并使用 ulimit 更改最大打开 fd。

在 Windows 上使用相同的配置显然没有效果,遗憾的是打开的连接数非常很小(大约 30 个,每个打开 6 个句柄)。我注意到 shell 启动了另外两个子进程,inet_gethost.exe 和 ssl_esock.exe。如果这些是我必须增加端口数的那些,我该怎么做?

谢谢,

最佳答案

根据 this , 在 Windows NT 中

the maximum number of sockets supported by a particular Windows Sockets supplier is implementation-specific. An application should make no assumptions about the availability of a certain number of sockets.

根据 this ,您应该重新定义FD_SETSIZE的值。

它还建议查看WSADATA.iMaxSockets

关于ssl - Windows 上的最大打开 ssl 连接数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2403807/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com