51Testing软件测试论坛

标题: Loadrunner压力测试时报““socket0-Connection reset by peer.Error code:10054”” [打印本页]

作者: czbrother    时间: 2016-9-1 12:53
标题: Loadrunner压力测试时报““socket0-Connection reset by peer.Error code:10054””
loadrunner执行压力测试,当用户数到一定数量时报错“socket0-Connection reset by peer.Error code:10054“


作者: 神仙也考试    时间: 2016-9-1 14:00

在Action中添加这2个函数试试。

lrs_send("socket1", "buf1", LrsLastArg);
lrs_set_recv_timeout(120,0);  //放在lrs_receive前面,具体的函数意思,可以去查询一下
lrs_set_recv_timeout2(10,0);
lrs_receive("socket1", "buf2", LrsLastArg);






欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2