- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试使用DisableAddressSharing注册表来禁用套接字之间的端口共享,但是它不起作用。
DisableAddressSharing设置为1。
socket server1 = bind(INADDR_ANY,Port)
socket server2 = bind("127.0.0.1",Port)
SO_EXCLUSIVEADDR
,则地址共享被禁用。是否有任何原因注册表无法正常工作?
最佳答案
必须重新启动才能使此设置生效。
As a workaround, Microsoft provides a registry setting that will globally (system-wide) prevent all sockets from reusing any port that is already in use. This is done by setting to 1 the "DisableAddressSharing" value of the "HKLM\System\CurrentControlSet\Services\Afd\Parameters" key. (Reboot required for the setting to take effect).The administrator should first confirm that disallowing socket reuse globally does not break the functionality/correctness of existing legitimate servers on the system. If it's safe, the setting described above should be used to apply this security measure.
关于c++ - DisableAddressSharing注册表不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62327492/
我是一名优秀的程序员,十分优秀!