In PHP development, I often use timeout processing to timeout. I will talk about several scenarios, it is convenient for users who need to work in PHP development to use timeout handling to timeout. I will talk about several scenarios:
1.
In the PHP development work very much uses in the timeout processing to the timeout situation, I said several scenes:
1. Get data asynchronously if one of the backend data sources is unsuccessful, skip, not affect the entire page presentation
2. To
First of all to analyze the reasons for the timeout:
1. The network is not smooth.
2. Background running slower (the first time the server is running, easy to appear)
Timeout Result: Timeout set request timeout in JQ.
Enter error (Error handling)
causes:Last week to several clusters of machine upgrade package, each cluster about 2000 servers, but in the process of software delivery and batch execution of commands in the course of two have encountered problems, in the batch execution of the
How to deal with the timeout problem of the port model (IOCP.
Author: que rongwen 2011/7/12
PrefaceThe completed port (IOCP) is the most complex and the best type of performance in all Windows I/O models. One of the difficulties in IOCP programming
1. "SQL server does not exist or access is denied"
This is the most complex. There are many causes of errors and there are many aspects to check.
Generally, there are several possibilities:
1. incorrect spelling of the SQL server name or IP address2.
Currently two client-side extension Library connection timeouts can be set to operate with options such as mysqli:
Copy Code code as follows:
Creating objects
$mysqli = Mysqli_init ();
Set timeout options
$mysqli->options
Currently, you can set options to operate the connection timeout of two client extension libraries, such as mysqli:
Copy codeThe Code is as follows: // Create an object
$ Mysqli = mysqli_init ();
// Set the timeout Option
$ Mysqli-> options
PHP connects to MySQL mainly by using the libmysqlclient client library provided by Mysql, and also extends the extensions of mysql and mysqli, which is relatively better and more stable than mysql.
Currently, you can set options to operate the
If there are more and more SQL databases, there may be a lot of problems such as read timeout and deadlocks. Based on experience, the data structure design is unreasonable and views are often used. How can we solve these problems? See Article 1.
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.