I have a script that when I execute, the site becomes unresponsive, while other sit开发者_JAVA技巧es on the same server are working well!
The script is nothing more than downloading a file from remote server and some few MySQL calls (5 maybe).
How can this script be affecting the entire site?
Without any specifics, my best guess is session locking.
When you access your site, your session file gets locked. All consecutive request to the same site with the same session id will have to wait till this one finishes.
If you want to release this lock, use session_write_close()
.
精彩评论