Program for recording Winsock protocol using LoadRunner (original)

Source: Internet
Author: User
Recording Using the Winsock protocol will slow the response time during playback. This is mainly because the content received by recv_buff during recording is inconsistent with that during playback. The system will automatically check the content.
Solution: Add a function in the program: lrs_set_recv_timeout2 (), so that the system does not check whether the recycled content is consistent.
Two functions are introduced:
1. lrs_set_recv_timeout (SEC, microsec)
The function sets the period of time that vugen waits to receive expected data from a socket.
Default Value = 10 s

2. lrs_set_recv_timeout2 (SEC, microsec)
The function sets a timeout limit for processing data on a socket. When lrs_receive buffers es 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.