|
我用LR录制了一份WTK访问客户端软件的操作,回放的时候出现9017错误
Replay LOG:
Virtual User Script started
Starting action vuser_init.
vuser_init.c(12): lrs_startup(257)
vuser_init.c(14): lrs_create_socket(socket0, TCP, ...)
vuser_init.c(16): lrs_create_socket(socket1, TCP, ...)
vuser_init.c(18): lrs_create_socket(socket2, TCP, ...)
vuser_init.c(20): lrs_set_accept_timeout(60, 0)
vuser_init.c(22): lrs_accept_connection(socket2, socket3)
vuser_init.c(22): Error : Timeout expired while trying to accept connection. Error code : 9017.
Abort was called from an action.
脚本:
#include "lrs.h"
vuser_init()
{
lrs_startup(257);
lrs_create_socket("socket0", "TCP", "LocalHost=0","Backlog=2048", LrsLastArg);
lrs_create_socket("socket1", "TCP", "LocalHost=0","Backlog=2048", LrsLastArg);
lrs_create_socket("socket2", "TCP", "LocalHost=0","Backlog=2048", LrsLastArg);
lrs_set_accept_timeout(60,0);
lrs_accept_connection("socket2", "socket3");
lrs_create_socket("socket4", "TCP", "RemoteHost=localhost:8080", LrsLastArg);
lrs_create_socket("socket5", "TCP", "RemoteHost=localhost:8080", LrsLastArg);
lrs_send("socket5", "buf0", LrsLastArg); |
|