net.setDefaultAutoSelectFamilyAttemptTimeout(value)


设置 socket.connect(options)autoSelectFamilyAttemptTimeout 选项的默认值。

¥Sets the default value of the autoSelectFamilyAttemptTimeout option of socket.connect(options).

  • value <number> 新的默认值,必须是正数。如果数字小于 10,则使用值 10。初始默认值为 250 或通过命令行选项 --network-family-autoselection-attempt-timeout 指定的值。

    ¥value <number> The new default value, which must be a positive number. If the number is less than 10, the value 10 is used instead. The initial default value is 250 or the value specified via the command line option --network-family-autoselection-attempt-timeout.