About socket backend timeout using a browser

Source: Internet
Author: User
About the socket backend timeout issue that occurs when a browser calls the background program. the background program processes a webpage that can be written in php in about 2 minutes because the file size is large, how can this problem be solved? If it is a pure php run, it will be okay. you can use a browser and post to call the php background program. this problem will occur. thank you for your advice ~


Reply to discussion (solution)

Paste the code to see if there is no code and no truth

If the code is large, the post method is used to call the php background program, and php accesses the server through socket to obtain data.
If you run the php-only method in the background, it doesn't matter. you can receive it, but the webpage format is used. after a while, the error 500 is returned.

Php. ini execution time setting
You haven't opened the php error prompt.

TimeOut. the cli method has no time limit.
Add in the program
Set_time_limit (0 );

However, if set_time_limit (0) is set, the browser does not exit even if it is not connected ..

Then I don't know what you're asking.

Okay, you know. thank you.

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.