【LR11】Error -27796: Failed to connect to server"server:port": [10060] Connection timed out錯誤解決辦法


 

場景描述:被測系統是發布在遠程服務器上的,假設IP是10.10.10.10,端口是8066,那么訪問地址是http://10.10.10.10:8066/,在control機器上我設置了IP欺騙。

錯誤現象:在場景運行時出現大量Action.c(8): Error -27796: Failed to connect to server"server:port": [10060] Connection timed out錯誤。

官方的troubleshooting:

查看工具的troubleshooting,如下:
代碼:
Message Code 27796
Failed to connect to server 'hostname';port_ld': 'reason'.
Unable to connect to the specified server and port.
Troubleshooting
o    Try to address the reason provided for the connection failure.
o    Try to access the application with a browser from the injector machine and from another machine (such as the recording machine).
o    Check that you accurately specified the correct host name and port.
o    Ping the host/port.
o    Check if the server application you are trying to access is running.
o    If you used a hostname, check if it was resolved to the correct address.
o    Check if the server application is listening to the right port.

網上查找的解決方法:
方法一:
在注冊表HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters里,有如下兩個鍵值:
TcpTimedWaitDelay
MaxUserPort
1,這里的TcpTimedWaitDelay默認值應該中是30s,所以這里,把這個值調小為5s(按需要調整)。
2,也可以把MaxUserPort調大(如果這個值不是最大值的話)。

此法不通!

方法二:

修改run time setting中的請求超時時間Preferences 中點擊Options 其中有三項的參數可以一次都修改了,HTTP-request connect timeout,HTTP-request receieve timeout,

Step download timeout,分別建議修改為1000、1000、10000;run time setting設置完了后記住還需要在control組件的option的run time setting中設置相應的參數;

此法不通!

上面兩個解決方法,百度一大片,我不知道轉載的人是不是確實解決了問題,我希望以后大家轉載文章或者博客時,最好證實是否有效再轉載。

 

方法三:取消IP欺騙,取消后再運行場景,不再提示這個錯誤。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM