Pitfall: in a short period of time, the browser will wait for the previous request to complete before processing the next request, leading to misleading code problems during asynchronous testing.

Source: Internet
Author: User

Example:

Tornado backend asynchronous processing (20 seconds for analog asynchronous processing)

Browser request API: http: // 192.168.1.98: 1104/test

Then open another table and request the same interface: http: // 192.168.1.98: 1104/test; (in this case, the second request cannot reach the backend, you must wait until the processing of the first request is complete before you can go to the backend .) Then, the browser will wait until the first request is complete and then process the second request. Therefore, it is best to add a different parameter http: // 192.168.1.98: 1104/test? Count = 123, let the browser think that different requests are normal.

Pitfall: in a short period of time, the browser will wait for the previous request to complete before processing the next request, leading to misleading code problems during asynchronous testing.

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.