穆楠忆 发表于 2016-4-6 16:52:15

loadrunne11在c/s架构下测试,回放失败 错误提示:9017

Error : Timeout expired while trying to accept connection. Error code : 9017.
我测的是c/s架构,电脑端有教师端,服务端,手机端有学生端,我现在的操作是本地下发文件给手机端,用的是ftp协议(但是我只看到socket),测的时候程序写的是教师端,但是回放失败(未修改代码),求懂的人指一条路!!!!下附脚本和data

脚本:Action()
{

    lr_think_time(14);

    lrs_send("socket0", "buf16", LrsLastArg);

    lrs_receive("socket0", "buf17", LrsLastArg);

    lrs_receive("socket0", "buf18", LrsLastArg);

    lrs_receive("socket0", "buf19", LrsLastArg);

    lrs_send("socket0", "buf20", LrsLastArg);

    lrs_send("socket1", "buf21", LrsLastArg);

    lrs_receive("socket0", "buf22", LrsLastArg);

    lrs_receive("socket1", "buf23", LrsLastArg);

    lrs_send("socket1", "buf24", LrsLastArg);

    lrs_receive("socket1", "buf25", LrsLastArg);

    lrs_send("socket1", "buf26", LrsLastArg);

    lrs_receive("socket1", "buf27", LrsLastArg);

    lrs_send("socket1", "buf28", LrsLastArg);

    lrs_receive("socket1", "buf29", LrsLastArg);

    lrs_send("socket1", "buf30", LrsLastArg);

    lrs_receive("socket1", "buf31", LrsLastArg);

    lrs_send("socket1", "buf32", LrsLastArg);

    lrs_receive("socket1", "buf33", LrsLastArg);

    lrs_send("socket1", "buf34", LrsLastArg);

    lrs_receive("socket1", "buf35", LrsLastArg);

    lrs_send("socket1", "buf36", LrsLastArg);

    lrs_receive("socket1", "buf37", LrsLastArg);

    lrs_receive("socket1", "buf38", LrsLastArg);

    lrs_send("socket1", "buf39", LrsLastArg);

    lrs_receive("socket1", "buf40", LrsLastArg);

    lrs_send("socket1", "buf41", LrsLastArg);

    lrs_receive("socket1", "buf42", LrsLastArg);

    lrs_receive("socket1", "buf43", LrsLastArg);

    lrs_send("socket1", "buf44", LrsLastArg);

    lrs_receive("socket1", "buf45", LrsLastArg);

    lrs_send("socket1", "buf46", LrsLastArg);

    lrs_receive("socket1", "buf47", LrsLastArg);

    lrs_send("socket0", "buf48", LrsLastArg);

    lrs_create_socket("socket2", "TCP", "LocalHost=0", "RemoteHost=Lenovo-PC:21", LrsLastArg);

    lrs_receive("socket2", "buf49", LrsLastArg);

    lrs_send("socket2", "buf50", LrsLastArg);

    lrs_receive("socket2", "buf51", LrsLastArg);

    lrs_send("socket2", "buf52", LrsLastArg);

    lrs_receive("socket2", "buf53", LrsLastArg);

    lrs_send("socket2", "buf54", LrsLastArg);

    lrs_receive("socket2", "buf55", LrsLastArg);

    lrs_create_socket("socket3", "TCP", "LocalHost=0", "Backlog=1", LrsLastArg);

    lrs_send("socket2", "buf56", LrsLastArg);

    lrs_receive("socket2", "buf57", LrsLastArg);

    lrs_send("socket2", "buf58", LrsLastArg);

    lrs_receive("socket2", "buf59", LrsLastArg);

    lrs_accept_connection("socket3", "socket4");(报错)

    lrs_close_socket("socket3");

    lrs_send("socket4", "buf60", LrsLastArg);

    lrs_close_socket("socket4");

    lrs_receive("socket2", "buf61", LrsLastArg);

    lrs_close_socket("socket2");

    lrs_send("socket0", "buf62", LrsLastArg);

    lrs_receive("socket0", "buf63", LrsLastArg);

    lrs_receive("socket0", "buf64", LrsLastArg);

    lrs_receive("socket0", "buf65", LrsLastArg);

    lrs_send("socket0", "buf66", LrsLastArg);

    return 0;
}
vuser_end()
{

    lr_think_time(5);

lrs_send("socket0", "buf67", LrsLastArg);(报错)

    lrs_close_socket("socket0");

    return 0;
}


log:


Starting iteration 1.
Starting action Action.
Action.c(4): Think time - Waiting 1.00 seconds (according to limit).
Action.c(4): lr_think_time: 1.00 seconds (recorded think time was 14.00 seconds).
Action.c(6): lrs_send(socket0, buf16)
Action.c(8): lrs_receive(socket0, buf17)
Action.c(10): lrs_receive(socket0, buf18)
Action.c(10): Mismatch in buffer's length (expected 1400 bytes, 111 bytes actually received, difference in 1289 bytes)
Action.c(12): lrs_receive(socket0, buf19)
Action.c(12): Mismatch in buffer's length (expected 856 bytes, 0 bytes actually received, difference in 856 bytes)
Action.c(14): lrs_send(socket0, buf20)
Action.c(16): lrs_send(socket1, buf21)
Action.c(18): lrs_receive(socket0, buf22)
Action.c(18): Mismatch in buffer's length (expected 594 bytes, 6 bytes actually received, difference in 588 bytes)
Action.c(20): lrs_receive(socket1, buf23)
Action.c(20): Mismatch in buffer's length (expected 30050 bytes, 5627 bytes actually received, difference in 24423 bytes)
Action.c(22): lrs_send(socket1, buf24)
Action.c(24): lrs_receive(socket1, buf25)
Action.c(24): Mismatch in buffer's length (expected 26221 bytes, 5623 bytes actually received, difference in 20598 bytes)
Action.c(26): lrs_send(socket1, buf26)
Action.c(28): lrs_receive(socket1, buf27)
Action.c(28): Mismatch in buffer's length (expected 14988 bytes, 5499 bytes actually received, difference in 9489 bytes)
Action.c(30): lrs_send(socket1, buf28)
Action.c(32): lrs_receive(socket1, buf29)
Action.c(32): Mismatch in buffer's length (expected 24623 bytes, 5633 bytes actually received, difference in 18990 bytes)
Action.c(34): lrs_send(socket1, buf30)
Action.c(36): lrs_receive(socket1, buf31)
Action.c(36): Mismatch in buffer's length (expected 23744 bytes, 5603 bytes actually received, difference in 18141 bytes)
Action.c(38): lrs_send(socket1, buf32)
Action.c(40): lrs_receive(socket1, buf33)
Action.c(40): Mismatch in buffer's length (expected 18734 bytes, 5499 bytes actually received, difference in 13235 bytes)
Action.c(42): lrs_send(socket1, buf34)
Action.c(44): lrs_receive(socket1, buf35)
Action.c(44): Mismatch in buffer's length (expected 14724 bytes, 5499 bytes actually received, difference in 9225 bytes)
Action.c(46): lrs_send(socket1, buf36)
Action.c(48): lrs_receive(socket1, buf37)
Action.c(48): Mismatch in buffer's length (expected 6944 bytes, 5499 bytes actually received, difference in 1445 bytes)
Action.c(50): lrs_receive(socket1, buf38)
Action.c(50): Mismatch in buffer's length (expected 5244 bytes, 0 bytes actually received, difference in 5244 bytes)
Action.c(52): lrs_send(socket1, buf39)
Action.c(54): lrs_receive(socket1, buf40)
Action.c(54): Mismatch in buffer's length (expected 7948 bytes, 5499 bytes actually received, difference in 2449 bytes)
Action.c(56): lrs_send(socket1, buf41)
Action.c(58): lrs_receive(socket1, buf42)
Action.c(58): Mismatch in buffer's length (expected 23328 bytes, 5645 bytes actually received, difference in 17683 bytes)
Action.c(60): lrs_receive(socket1, buf43)
Action.c(60): Mismatch in buffer's length (expected 1139 bytes, 0 bytes actually received, difference in 1139 bytes)
Action.c(62): lrs_send(socket1, buf44)
Action.c(64): lrs_receive(socket1, buf45)
Action.c(64): Mismatch in buffer's length (expected 14515 bytes, 5499 bytes actually received, difference in 9016 bytes)
Action.c(66): lrs_send(socket1, buf46)
Action.c(68): lrs_receive(socket1, buf47)
Action.c(68): Mismatch in buffer's length (expected 15570 bytes, 5499 bytes actually received, difference in 10071 bytes)
Action.c(70): lrs_send(socket0, buf48)
Action.c(72): lrs_create_socket(socket2, TCP, ...)
Action.c(74): lrs_receive(socket2, buf49)
Action.c(76): lrs_send(socket2, buf50)
Action.c(78): lrs_receive(socket2, buf51)
Action.c(80): lrs_send(socket2, buf52)
Action.c(82): lrs_receive(socket2, buf53)
Action.c(82): Mismatch in buffer's length (expected 15 bytes, 34 bytes actually received, difference in 19 bytes)
Action.c(84): lrs_send(socket2, buf54)
Action.c(86): lrs_receive(socket2, buf55)
Action.c(88): lrs_create_socket(socket3, TCP, ...)
Action.c(90): lrs_send(socket2, buf56)
Action.c(92): lrs_receive(socket2, buf57)
Action.c(92): Mismatch in buffer's length (expected 29 bytes, 30 bytes actually received, difference in 1 bytes)
Action.c(94): lrs_send(socket2, buf58)
Action.c(96): lrs_receive(socket2, buf59)
Action.c(96): Mismatch in buffer's length (expected 45 bytes, 93 bytes actually received, difference in 48 bytes)
Action.c(98): lrs_accept_connection(socket3, socket4)
Action.c(98): Error : Timeout expired while trying to accept connection. Error code : 9017.
Abort was called from an action.
Ending Vuser...
Starting action vuser_end.
vuser_end.c(4): Think time - Waiting 1.00 seconds (according to limit).
vuser_end.c(4): lr_think_time: 1.00 seconds (recorded think time was 5.00 seconds).
vuser_end.c(6): lrs_send(socket0, buf67)
vuser_end.c(6): Error : socket0 - Software caused connection abort. Error code : 10053.
Abort was called from an action.

data.ws
sendbuf48 8
    "\x00"
    "\b"
    "\x1b\x01"
    "测试"

recvbuf49 13
    "220 ZoneLue\r\n"

sendbuf50 16
    "USER SuperWang\r\n"

recvbuf51 37
    "331 Password required for superwang\r\n"

sendbuf52 13
    "PASS 123188\r\n"

recvbuf53 15
    "230 Logged on\r\n"

sendbuf54 8
    "TYPE A\r\n"

recvbuf55 19
    "200 Type set to A\r\n"

sendbuf56 29
    "PORT 192,168,18,120,238,118\r\n"

recvbuf57 29
    "200 Port command successful\r\n"

sendbuf58 28
    "STOR Teacher-142753161.txt\r\n"

recvbuf59 45
    "150 Opening data channel for file transfer.\r\n"

sendbuf60 12
    "性能测试文件"

recvbuf61 23
    "226 Transfer complete\r\n"

sendbuf62 26
    "\x00\x1a\x1b\x02\x00"
    "Teacher-142753161.txt"

recvbuf63 4
    "\x00\x04\x1b\x05"

recvbuf64 8
    "\x00"
    "4"
    "\x1b\x03\x00\x04\x1b"
    "\a"

recvbuf65 4
    "\x00\x04\x1b\x05"

sendbuf66 28
    "\x00\x1c\x1b"
    "\b<COL>1</COL><COL>0</COL>"

sendbuf67 4
    "\x00\x04\x1b\x04"


-1


fhhh_eyou 发表于 2016-4-7 10:24:23

连接超时。
lrs_accept_connection("socket3", "socket4");(报错)
看一下你这个连接名称与上下代码。
recvbuf57 29
    "200 Port command successful\r\n"执行成功。

穆楠忆 发表于 2016-4-7 15:05:26

fhhh_eyou 发表于 2016-4-7 10:24
连接超时。
lrs_accept_connection("socket3", "socket4");(报错)
看一下你这个连接名称与上下代码。
...

代码在哪里看呢?不是看脚本吗?

穆楠忆 发表于 2016-4-7 15:05:33

fhhh_eyou 发表于 2016-4-7 10:24
连接超时。
lrs_accept_connection("socket3", "socket4");(报错)
看一下你这个连接名称与上下代码。
...

代码在哪里看呢?不是看脚本吗?

fhhh_eyou 发表于 2016-4-7 15:07:44

对,你写对了!

穆楠忆 发表于 2016-4-7 16:38:57

fhhh_eyou 发表于 2016-4-7 15:07
对,你写对了!

我没有改脚本,直接回放,但是不行,一直是这个错
页: [1]
查看完整版本: loadrunne11在c/s架构下测试,回放失败 错误提示:9017