zoukankan      html  css  js  c++  java
  • 使用loadrunner录制winsock协议的程序(原创)

    使用winsock协议录制,在回放的时候,响应时间会很慢。主要是因为录制时recv_buff接收的内容和回放时的内容不一致,系统会自动去检查。
    解决办法:在程序中添加一个函数:lrs_set_recv_timeout2(0,0),这样系统就不去检查回收的内容是否一致了。
    介绍两个函数:
    1. lrs_set_recv_timeout(sec,microsec)
    The function sets the period of time that Vugen waits to receive expected data from a socket.
    默认值=10s

    2. lrs_set_recv_timeout2(sec,microsec)
    The function sets a timeout limit for receiving data on a socket。When lrs_receive receives the data buffer, it compares its size with the expected data. If the buffer size does not match, it performs additional iterations and rereads the incoming socket data, until the timeout2 limit is reached.



  • 相关阅读:
    十九:数字排重
    十八:十六进制转八进制
    Dubbo Notes
    Concurrent Package
    MySQL(8.0)官方文档阅读笔记
    MyBatis笔记
    分布式事务
    RabbitMQ笔记
    Kafka官方文档阅读笔记
    Cassandra Note
  • 原文地址:https://www.cnblogs.com/morebetter/p/459203.html
Copyright © 2011-2022 走看看