51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2844|回复: 2
打印 上一主题 下一主题

[原创] LR回放 10053错误 怎么整。。。

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2011-7-22 10:04:59 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
#include "lrs.h"


vuser_init()
{
    lrs_startup(257);

    lrs_create_socket("socket0", "TCP", "RemoteHost=xiangxiang:8123",  LrsLastArg);

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

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

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

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

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

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

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

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

    lrs_create_socket("socket1", "TCP", "RemoteHost=xiangxiang:8121",  LrsLastArg);

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

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

    lrs_disable_socket("socket1", DISABLE_SEND_RECV);

    lrs_close_socket("socket1");

    lrs_create_socket("socket2", "TCP", "RemoteHost=xiangxiang:8121",  LrsLastArg);

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

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

    lrs_disable_socket("socket2", DISABLE_SEND_RECV);

    lrs_close_socket("socket2");

    lrs_create_socket("socket3", "TCP", "RemoteHost=xiangxiang:8123",  LrsLastArg);

    lrs_send("socket3", "buf12", LrsLastArg);

    lrs_receive("socket3", "buf13", LrsLastArg);

    lrs_close_socket("socket3");

    lrs_create_socket("socket4", "TCP", "RemoteHost=xiangxiang:8123",  LrsLastArg);

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

    lrs_receive("socket4", "buf15", LrsLastArg);

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

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

    lrs_close_socket("socket4");

    lrs_create_socket("socket5", "TCP", "RemoteHost=xiangxiang:8123",  LrsLastArg);

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

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

    lrs_close_socket("socket5");

    lrs_create_socket("socket6", "TCP", "RemoteHost=xiangxiang:8123",  LrsLastArg);

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

    lrs_receive("socket6", "buf21", LrsLastArg);

    lrs_send("socket6", "buf22", LrsLastArg);

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

    lrs_create_socket("socket7", "TCP", "RemoteHost=xiangxiang:8121",  LrsLastArg);

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

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

    lrs_disable_socket("socket7", DISABLE_SEND_RECV);

    lrs_close_socket("socket7");

    lrs_create_socket("socket8", "TCP", "RemoteHost=xiangxiang:8123",  LrsLastArg);

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

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

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

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

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

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

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

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

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

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

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

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

    lrs_send("socket8", "buf38", LrsLastArg);

    lrs_receive("socket8", "buf39", LrsLastArg);

    lrs_send("socket8", "buf40", LrsLastArg);

    lrs_receive("socket8", "buf41", LrsLastArg);

    lrs_send("socket8", "buf42", LrsLastArg);

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

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

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

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

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

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

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

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

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

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

    lrs_create_socket("socket9", "TCP", "RemoteHost=xiangxiang:8123",  LrsLastArg);

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

    lrs_create_socket("socket10", "TCP", "RemoteHost=xiangxiang:8123",  LrsLastArg);

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

    lrs_send("socket9", "buf55", LrsLastArg);

    lrs_receive("socket8", "buf56", LrsLastArg);

    lrs_send("socket10", "buf57", LrsLastArg);

    lrs_receive("socket9", "buf58", LrsLastArg);

    lrs_send("socket8", "buf59", LrsLastArg);

    lrs_receive("socket10", "buf60", LrsLastArg);

    lrs_send("socket9", "buf61", LrsLastArg);

    lrs_receive("socket8", "buf62", LrsLastArg);

    lrs_create_socket("socket11", "TCP", "RemoteHost=xiangxiang:8123",  LrsLastArg);

    lrs_send("socket10", "buf63", LrsLastArg);

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

    lrs_send("socket8", "buf65", LrsLastArg);

    lrs_receive("socket9", "buf66", LrsLastArg);

    lrs_receive("socket8", "buf67", LrsLastArg);

    lrs_send("socket11", "buf68", LrsLastArg);

    lrs_receive("socket9", "buf69", LrsLastArg);

    lrs_receive("socket11", "buf70", LrsLastArg);

    lrs_close_socket("socket9");

    lrs_create_socket("socket12", "TCP", "RemoteHost=xiangxiang:8123",  LrsLastArg);

    lrs_create_socket("socket13", "TCP", "RemoteHost=xiangxiang:8123",  LrsLastArg);

    lrs_send("socket12", "buf71", LrsLastArg);

    lrs_receive("socket12", "buf72", LrsLastArg);

    lrs_send("socket13", "buf73", LrsLastArg);

    lrs_send("socket12", "buf74", LrsLastArg);

    lrs_receive("socket13", "buf75", LrsLastArg);

    lrs_receive("socket12", "buf76", LrsLastArg);

    lrs_send("socket13", "buf77", LrsLastArg);

    lrs_receive("socket12", "buf78", LrsLastArg);

    lrs_receive("socket13", "buf79", LrsLastArg);

    lrs_receive("socket12", "buf80", LrsLastArg);

    lrs_receive("socket13", "buf81", LrsLastArg);

    lrs_close_socket("socket12");

    lrs_receive("socket13", "buf82", LrsLastArg);

    lrs_close_socket("socket13");

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    lrs_send("socket8", "buf103", LrsLastArg);

    lrs_receive("socket8", "buf104", LrsLastArg);

    lrs_send("socket8", "buf105", LrsLastArg);

    lrs_create_socket("socket14", "TCP", "RemoteHost=xiangxiang:8123",  LrsLastArg);

    lrs_receive("socket8", "buf106", LrsLastArg);

    lrs_send("socket8", "buf107", LrsLastArg);

    lrs_send("socket14", "buf108", LrsLastArg);

    lrs_receive("socket8", "buf109", LrsLastArg);

    lrs_receive("socket14", "buf110", LrsLastArg);

    lrs_send("socket8", "buf111", LrsLastArg);

    lrs_receive("socket8", "buf112", LrsLastArg);

    lrs_send("socket14", "buf113", LrsLastArg);

    lrs_receive("socket14", "buf114", LrsLastArg);

    lrs_send("socket14", "buf115", LrsLastArg);

    lrs_receive("socket14", "buf116", LrsLastArg);

    lrs_close_socket("socket14");

    lrs_send("socket8", "buf117", LrsLastArg);

    lrs_receive("socket8", "buf118", LrsLastArg);

    lr_think_time(8);

    lrs_create_socket("socket15", "TCP", "RemoteHost=xiangxiang:8123",  LrsLastArg);

    lrs_send("socket15", "buf119", LrsLastArg);

    lrs_receive("socket15", "buf120", LrsLastArg);

    lrs_send("socket15", "buf121", LrsLastArg);

    lrs_receive("socket15", "buf122", LrsLastArg);

    lrs_send("socket15", "buf123", LrsLastArg);

    lrs_receive("socket15", "buf124", LrsLastArg);

    lrs_send("socket15", "buf125", LrsLastArg);

    lrs_receive("socket15", "buf126", LrsLastArg);

    lrs_send("socket15", "buf127", LrsLastArg);

    lrs_receive("socket15", "buf128", LrsLastArg);

    lrs_send("socket15", "buf129", LrsLastArg);

    lrs_receive("socket15", "buf130", LrsLastArg);

    lrs_send("socket15", "buf131", LrsLastArg);

    lrs_receive("socket15", "buf132", LrsLastArg);

    lrs_send("socket15", "buf133", LrsLastArg);

    lrs_receive("socket15", "buf134", LrsLastArg);

    lrs_send("socket15", "buf135", LrsLastArg);

    lrs_receive("socket15", "buf136", LrsLastArg);

    lrs_send("socket15", "buf137", LrsLastArg);

    lrs_receive("socket15", "buf138", LrsLastArg);

    lrs_close_socket("socket15");

    return 0;
}

错误: socket11 - 软件造成连接终止。错误代码: 10053
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2011-8-9 18:22:58 | 只看该作者
有同样困惑,求解
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2011-8-9 22:54:19 | 只看该作者
本帖最后由 wower1985 于 2011-8-9 22:55 编辑

1、首先叫开发人员好好检查下程序,socket并发的时候是怎么实现的,能并发不??设计上的问题会导致这个。主要是编程上的问题。
2、看你的脚本中发现,发消息反复创建同一个socket,上面的socket还没有关闭,下面又创建,会有问题,
3、有些socket要放在init里面,但是有些就不能,要放在Action里面,还有就是要关闭socket。
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-16 10:31 , Processed in 0.069094 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表