|
我做压力测试时,共20个vuser,每15S起2个vuser,当测试到1分钟时,出现vuser错误,退出,报connect time out ,如何让vuser不退出继续connect。
action脚本
Action()
{
int ret=0;
lrs_set_connect_timeout(10,0);
ret = lrs_create_socket("socket1", "TCP", "RemoteHost=192.168.1.220:9898", LrsLastArg);
lr_output_message("An error occurred while create the socket, Error Code: %d", ret);
lr_rendezvous("查询");
lr_start_transaction("查询");
lrs_send("socket1","buf2", LrsLastArg);
lrs_receive("socket1","buf1","0", LrsLastArg);
lr_end_transaction("查询",LR_AUTO);
lrs_disable_socket("socket1", DISABLE_SEND);
lrs_close_socket("socket1");
return 0;
} |
|