Birisi mysqli yakın fonksiyonu ile ilgili bu açıklama hakkında biraz açıklayabilir misiniz?

0 Cevap php

Mysqli dokümantasyon sitede burada listelenen, yorumların diyor

You should always use mysqli_kill() function before mysqli_close() to actually close and free up the tcp socket being used by PHP. Garbage collection after script execution nor mysqli_close() do not kill the tcp socket on their own. The socket would otherwise remain in 'wait' state for approximately 30 seconds, and any additional page loads/connection attempts would only add to the total number of open tcp connections. This wait time does not appear to be configurable via PHP settings.

Also as of this version, mysqli created links cannot be "deactivated", and will continue to accumulate in process memory until the PHP server or process is restarted, essentially making mysqli.max_links = -1 required.

Birisi bu ne anlama geldiğini açıklamak ve mysqli.max_links ayarlanmış olmalıdır eğer, ne kadar ve ben mysqli_kill kullanarak gerektiğini if ​​() olabilir;

0 Cevap