51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 3537|回复: 0
打印 上一主题 下一主题

[求助] Socket脚本Select timed out 问题

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2013-1-28 14:47:40 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
压Socket脚本时,发送一个包然后等待返回值,在20个并发时,就会报错,日志如下,请各位看看有没遇到过,要如何解决呢。

=================================SENT BUFFER=================================        [MsgId: MMSG0]
        "\x01\x00\x01\x00\x01\x00\x01\x00"
        "\a"
        "\x02\x00\x01\x01\x00\x01\x00"
        "<message><user><serialid>4856</serialid><mobilecode>951656001</mobilecode>"
        "<type>ucsp</type>\r\n"
        "<command>iscomingReq</command>\r\n"
        "<role>0</role>\r\n"
        "<isResult>0</isResult>\r\n"
        "<time>2012-12-06 16:16:39</time><level>0</level>\r\n"
        "<version>1.0.0</version>\r\n"
        "<param1></param1>\r\n"
        "<param2>233</param2>\r\n"
        "<business>ACD</business>\r\n"
        "</user><body><caller>951656001</caller><index>0000</index><group>0020</gro"
        "up><proId>13</proId><opeId>02</opeId>\r\n"
        "<orsn>20121206006816</orsn><called>137355991381</called><bizorsn>0102</biz"
        "orsn>\r\n"
        "</body></message>"
        [MsgId: MMSG0]
===============================================================================        [MsgId: MMSG0]
Action.c(112): callSend: Mon Jan 28 14:26:22.828: About to send 535 bytes to socket0 (524)        [MsgId: MMSG0]
Action.c(112): callSend: Mon Jan 28 14:26:22.828: Waiting for writable socket 10 secs, 0 usecs        [MsgId: MMSG0]
Action.c(112): callSend: Mon Jan 28 14:26:22.828: Trying to send 535 bytes        [MsgId: MMSG0]
Action.c(112): callSend: Mon Jan 28 14:26:22.828: Sent in this iteration 535 bytes (total in all iterations 535 bytes)        [MsgId: MMSG0]
Action.c(113): lrs_receive(socket0, buf4)        [MsgId: MMSG0]
Action.c(113): fiInitRecv: socket: socket0 (524), buffer: buf4, expected size: 537        [MsgId: MMSG0]
Action.c(113): callRecv: Mon Jan 28 14:26:22.828: About to read 537 bytes from socket0 (524)        [MsgId: MMSG0]
Action.c(113): fiPerformReceive: Mon Jan 28 14:26:22.828: Waiting for readable socket 10 secs, 0 usecs        [MsgId: MMSG0]
Action.c(113): fiPerformReceive: Mon Jan 28 14:26:32.828: Select timed out        [MsgId: MMSG0]

Action.c(113): Mismatch in buffer's length (expected 537 bytes, 0 bytes actually received, difference in 537 bytes)        [MsgId: MMSG0]
Action.c(113): fiCheckRecvMismatch: Mon Jan 28 14:26:32.828: reading buffer buf4        [MsgId: MMSG0]
Action.c(113): fiCheckRecvMismatch: Mon Jan 28 14:26:32.828: calling parameterization routines        [MsgId: MMSG0]
================================EXPECTED BUFFER================================        [MsgId: MMSG0]
        [MsgId: MMSG0]
===============================================================================        [MsgId: MMSG0]
Action.c(113): getAsciiReceivedBuffer: Mon Jan 28 14:26:32.828: Translate data for printing        [MsgId: MMSG0]
Action.c(113): getAsciiReceivedBuffer: Mon Jan 28 14:26:32.828: Binary to ascii        [MsgId: MMSG0]
================================RECEIVED BUFFER================================        [MsgId: MMSG0]
        [MsgId: MMSG0]
===============================================================================        [MsgId: MMSG0]
Action.c(113): callRecv:0 bytes were received        [MsgId: MMSG0]
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-25 18:51 , Processed in 0.065656 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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