51Testing软件测试论坛

标题: lr的winsocket脚本在controller中报Timeout expired ...Error code : 9017. [打印本页]

作者: anna03    时间: 2009-7-24 17:15
标题: lr的winsocket脚本在controller中报Timeout expired ...Error code : 9017.
郁闷啊!折腾一下午也没搞定,只能上万能的论坛来求助了。
脚本回放的时候都是正常的,就是一放到controller中不管几个用户都超时
脚本很简单是这样的:
#include "lrs.h"


Action()
{
    char *ip=lr_get_vuser_ip();
    if(ip)
    lr_output_message("The IP address is %s",ip);
    else
    lr_output_message("IP spoofing disable");
     

    lrs_set_connect_timeout(240,0);
    lrs_create_socket("socket0", "TCP", "LocalHost=8899", "Backlog=5",  LrsLastArg);

    lrs_create_socket("socket1", "TCP", "LocalHost=8854", "Backlog=5",  LrsLastArg);

    lrs_create_socket("socket2", "TCP", "LocalHost=8890", "Backlog=5",  LrsLastArg);

    lrs_create_socket("socket3", "TCP", "LocalHost=8855", "Backlog=5",  LrsLastArg);

    lrs_create_socket("socket4", "TCP", "LocalHost=33", "Backlog=5",  LrsLastArg);

   
    lrs_accept_connection("socket2", "socket5");

    lrs_receive("socket5", "buf0", LrsLastArg);

    lrs_send("socket5", "buf1", LrsLastArg);

    lr_think_time(6);

    lrs_send("socket5", "buf2", LrsLastArg);

    lrs_receive("socket5", "buf3", LrsLastArg);

    lrs_send("socket5", "buf4", LrsLastArg);

    lrs_receive("socket5", "buf5", LrsLastArg);

    lrs_send("socket5", "buf6", LrsLastArg);

    lrs_receive("socket5", "buf7", LrsLastArg);

    lrs_send("socket5", "buf8", LrsLastArg);

    return 0;
}

controller中报错指向的行是:  lrs_accept_connection("socket2", "socket5");请大家帮帮忙!

[ 本帖最后由 anna03 于 2009-7-24 17:18 编辑 ]
作者: zhengaiqi    时间: 2013-5-24 12:35
求答案。。。。
作者: zhengaiqi    时间: 2013-5-24 12:35
很想知道怎么解决的。。。




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2