The difference between lrs_set_recv_timeout and Lrs_set_recv_timeout2 in LoadRunner

Source: Internet
Author: User

Both Lrs_set_recv_timeout and Lrs_set_recv_timeout2 are used to set the receive timeout for sockets, but not for the time-out objects.
    • Lrs_set_recv_timeout: After executing the lrs_receive command, wait for the server to return the message timeout, that is, the response time of the server.
    • LRS_SET_RECV_TIMEOUT2: The connection was created successfully, and after receiving the message returned by the server, the time-out for matching messages is obtained. When the lrs_receive receives the data, it is compared to the expected length of the data, and if the length does not match, it will re-read the data from the socket until it times out.

For example:

lrs_ Create_socket ( "Socket2" , "TCP" , "remotehost= Tears.mercury.co.il:23 " lrs_send ( , "Buf2" lrs_set_recv_timeout (120,0); lrs_set_recv_timeout2 (10,0); lrs_receive ( , "buf3"

Differences between Lrs_set_recv_timeout and Lrs_set_recv_timeout2 in LoadRunner

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.