Perforce 的默认连接超时是多少?

What is the default connection timeout for Perforce?

我正在通过 P4Perl Api 连接到 Perforce 服务器,我想知道连接操作是否在设定的时间后中止,或者我必须处理来自我的 Perl 代码。

use P4;
my $perforceObject = new P4;

$perforceObject->SetPort( 'test-1234:8080');
$perforceObject->SetUser( 'user1234');

# try to connect for 10s or abort unless the connection is aborted automatically
$perforceObject->Connect();

据我所知,Perforce 没有自己的内置超时,而是依赖于 OS 的 TCP/IP 实现。我很确定大多数系统会在 10 秒过去之前初始连接失败,所以你应该没问题,而不必添加你自己的终止开关。