czbrother 发表于 2016-9-1 12:53:13

Loadrunner压力测试时报““socket0-Connection reset by peer.Error code:10054””

loadrunner执行压力测试,当用户数到一定数量时报错“socket0-Connection reset by peer.Error code:10054“

神仙也考试 发表于 2016-9-1 14:00:31


在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);

页: [1]
查看完整版本: Loadrunner压力测试时报““socket0-Connection reset by peer.Error code:10054””