我用loadrunner 11 socket 协议压力测试报10054 对方将连接复位,测试脚步是在recv 那部分代码,但是后台查询没有accept记录。请问下这是什么原因。 - #include "lrs.h"
- Action()
- {
- int rc = 0;
- lrs_set_connect_timeout(100,0);
- rc = lrs_create_socket("socket1", "TCP", "RemoteHost=192.168.2.132:5032", LrsLastArg);
- if(rc != 0)
- {
- lr_output_message("an error error code %d", rc);
- return -1;
- }
- lr_start_transaction("消费");
- lrs_set_recv_timeout(10,0);
- lrs_send("socket1", "buf2", LrsLastArg);
- lrs_receive("socket1", "buf1", "0", LrsLastArg);
- lr_end_transaction("消费", LR_AUTO);
- lrs_disable_socket("socket1", DISABLE_SEND_RECV);
- lrs_close_socket("socket1");
- return 0;
- }
复制代码
|