|
socket协议压力测试,同一条消费报文,50Vuser,测试LR报错10053、10054,这是什么情况,请教高手给意见。
脚本如下:
Action()
{
char *ActualBuffer;
int NumberOfBytes;
lr_start_transaction("tcpsocket");
lrs_create_socket("socket1", "TCP", "RemoteHost=10.1.28.7:17102", LrsLastArg);
lrs_send ("socket1", "buf0", LrsLastArg );
lrs_disable_socket("socket1", DISABLE_SEND);
lrs_set_recv_timeout(10,0);
lrs_receive("socket1","buf1", LrsLastArg);
/* Get the last received buffer and its size. */
lrs_get_last_received_buffer("socket1", &ActualBuffer, &NumberOfBytes);
lrs_disable_socket("socket1", DISABLE_RECV);
lrs_free_buffer(ActualBuffer);
lrs_close_socket("socket1");
lr_end_transaction("tcpsocket", LR_AUTO);
return 0;
}
;WSRData 2 1
send buf0 276
"02686003D23800018850109000000003810000E016AE24630A08AC03893C6EDE79B6996F8706151427141514271414271406150699999912241000000001000000071720120615142653 2410000000010800000091692BD1E5660E7D6A00213006320200CB4B1C2ED4B2DAEA42C39DDCF44B63FFE0C125BB003123006wangwu00206006320200"
recv buf1 86
//"00856101A21000000A0100000000000000000000006101061511503500000000000000000000000011000"
-1
是不是因为用了同一条报文呢?可是有时候Vuser30个时候就能正常测试? |
|