Home Backend Development PHP Tutorial 关于wait_timeout的一些有关问题

关于wait_timeout的一些有关问题

Jun 13, 2016 pm 01:05 PM
client connect timeout wait

关于wait_timeout的一些问题
先看下定义

(1)interactive_timeout:
参数含义:服务器关闭交互式连接前等待活动的秒数。交互式客户端定义为在mysql_real_connect()中使用CLIENT_INTERACTIVE选项的客户端。
参数默认值:28800秒(8小时)

(2)wait_timeout:
参数含义:服务器关闭非交互连接之前等待活动的秒数。
在线程启动时,根据全局wait_timeout值或全局interactive_timeout值初始化会话wait_timeout值,取决于客户端类型(由mysql_real_connect()的连接选项CLIENT_INTERACTIVE定义)。
参数默认值:28800秒(8小时)

问题1:何为交互式、非交互式?
问题2:上面说 关闭链接前等待的秒数,这句话怎么理解?

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to configure Nginx timeout timeout How to configure Nginx timeout timeout May 12, 2023 pm 10:07 PM

keepalive_timeouthttp has a keepalive mode, which tells the webserver to keep the TCP connection open after processing a request. If it receives other requests from the client, the server will use this unclosed connection without establishing another connection. httpkeep-alive, every request on the web page is http (pictures, css, etc.), and to open an http request, you must first establish a tcp connection. If a page needs to open and close a tcp connection for each request, it will become a resource. The waste of keepalive_timeout is that when an http request is completed, its tcp connection will remain

How to solve the blue screen of win11 clock watchdog timeout? How to solve the blue screen of win11 clock watchdog timeout? Feb 14, 2024 pm 04:00 PM

Many users will experience a blue screen after upgrading the win11 system, such as: clockwatchdogtimeout blue screen, so how to solve this? Users can update the driver or check for overheating problems, etc. Let this site carefully introduce to users the solution to the clockwatchdogtimeout blue screen win11. Solution to the clockwatchdogtimeout blue screen win11 1. Update the driver: Updating the CPU and motherboard drivers may solve the problem. You can download the latest drivers by visiting the manufacturer's website. 2. Check for overheating issues: Overheating may also be one of the causes of this error.

What should I do if 'Error: timeout of xxxms exceeded' occurs when using vue-resource in a Vue application? What should I do if 'Error: timeout of xxxms exceeded' occurs when using vue-resource in a Vue application? Jun 24, 2023 pm 02:21 PM

In Vue application development, using vue-resource to make HTTP requests is a common operation. Although vue-resource provides many convenient functions, sometimes we encounter error messages such as "Error: timeoutofxxxmsexceeded". This error is usually caused by a request timeout. So, in this case, how should we solve this problem? 1. Increase the request timeout. First, we can increase the request timeout by

What should I do if 'Error: timeout of xxxms exceeded' occurs when using axios in a Vue application? What should I do if 'Error: timeout of xxxms exceeded' occurs when using axios in a Vue application? Jun 24, 2023 pm 03:27 PM

What should I do if "Error: timeoutofxxxmsexceeded" occurs when using axios in a Vue application? With the rapid development of the Internet, front-end technology is constantly updated and iterated. As an excellent front-end framework, Vue has been welcomed by everyone in recent years. In Vue applications, we often need to use axios to make network requests, but sometimes the error "Error: timeoutofxxxmsexceeded" occurs.

How to solve 504 gateway timeout How to solve 504 gateway timeout Nov 27, 2023 am 10:55 AM

Solutions to 504 gateway timeout: 1. Check server load; 2. Optimize query and code; 3. Increase timeout limit; 4. Check proxy server; 5. Check network connection; 6. Use load balancing; 7. Monitor and log; 8. Troubleshooting; 9. Add cache; 10. Analyze requests. Resolving this error often requires a combination of factors, including server performance, network connectivity, proxy server configuration, and application optimization.

What is the difference between sleep and wait methods in Java? What is the difference between sleep and wait methods in Java? May 06, 2023 am 09:52 AM

1. The fundamental difference between sleep and wait methods: sleep is a method in the Thread class and will not enter the running state immediately. wait is a method in the Object class. Once an object calls the wait method, notify() and notifyAll must be used. () method wakes up the process to release the synchronization lock: sleep will release the cpu, but sleep will not release the synchronization lock resources, and wait will release the synchronization lock resource usage range: sleep can be used anywhere, but wait can only be used in the synchronized synchronization method Or use exception handling in the code block: sleep needs to catch exceptions, but wait does not need to catch exceptions 2. wa

ftp_ssl_connect() function in PHP ftp_ssl_connect() function in PHP Aug 29, 2023 am 08:45 AM

The ftp_ssl_connect() function opens a secure SSL-FTP connection. Syntaxftp_ssl_connect(host,port,timeout); parameter host−FTP server address. It can be a domain name address or an IP address. port−The port to connect to. The default is 21. timeout − timeout for network operations. Return value The ftp_ssl_connect() function returns the SSL-FTP stream on success and FALSE on error. Example The following is an example −<?ph

Firewalld Linux firewall Firewalld Linux firewall Feb 19, 2024 pm 06:24 PM

The firewall firewall firewalld service has two working modes: CLI and GUI. Compared with iptables, firewall supports dynamic updates and introduces the concept of zone. In short, a zone refers to a set of firewall policies predefined by the firewall, which allows these policies to be quickly switched between firewalls, thereby significantly improving the switching efficiency and application speed of the firewall. The zone default policy rule trusted allows all packets home to deny incoming traffic, but the ssh, mdns, ipp-client, and dhcpv6-client services are allowed to pass through the internal equivalent of the home zone work and deny incoming traffic, but

See all articles