There are certain posts on MySQL connection set time out from PHP using mysql.connect_timeout. I want to know if this set timeout from PHP just time out the initial connecti
You would have to fork a child process, the parent process will kill the child process if some condition is not met within 20 seconds.
Or use a language like node.js that doesn't block the current thread for an IO operation like a query.