|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-09-29 08:36 UTC] gilles dot rayrat at continuent dot com
Description: ------------ Similarly to connector/j bug reported here: http://bugs.mysql.com/bug.php? id=56979, there is a problem with mysql disconnection logic where the TCP connection TIME_WAIT state is found on the server rather than on the client. With multiple clients and multiple connection, the MySQL server can run out of file descriptors quickly. The disconnect method should first set EOF to its input, then send the QUIT command, then set its output to EOF, then close the socket Note: I guess the same bug appears in MySQL-non-i as well PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 04:00:01 2025 UTC |
php: No. Time Source Destination Protocol Info 1 0.000000 192.168.50.129 192.168.50.128 TCP 57338 > mysql [SYN] Seq=0 Win=5840 Len=0 MSS=1460 TSV=88257291 TSER=0 WS=5 2 0.000550 192.168.50.128 192.168.50.129 TCP mysql > 57338 [SYN, ACK] Seq=0 Ack=1 Win=5792 Len=0 MSS=1460 TSV=170478509 TSER=88257291 WS=5 3 0.000574 192.168.50.129 192.168.50.128 TCP 57338 > mysql [ACK] Seq=1 Ack=1 Win=5856 Len=0 TSV=88257291 TSER=170478509 4 0.001434 192.168.50.128 192.168.50.129 MySQL Server Greeting proto=10 version=5.1.26-rc-log 5 0.001960 192.168.50.129 192.168.50.128 TCP 57338 > mysql [ACK] Seq=1 Ack=64 Win=5856 Len=0 TSV=88257292 TSER=170478510 6 0.005680 192.168.50.129 192.168.50.128 MySQL Login Request user=tungsten db=test 7 0.006010 192.168.50.128 192.168.50.129 TCP mysql > 57338 [ACK] Seq=64 Ack=72 Win=5792 Len=0 TSV=170478511 TSER=88257293 8 0.006073 192.168.50.128 192.168.50.129 MySQL Response OK 9 0.006383 192.168.50.129 192.168.50.128 MySQL Request Quit 10 0.006618 192.168.50.128 192.168.50.129 TCP mysql > 57338 [FIN, ACK] Seq=75 Ack=77 Win=5792 Len=0 TSV=170478511 TSER=88257293 11 0.006672 192.168.50.129 192.168.50.128 TCP 57338 > mysql [FIN, ACK] Seq=77 Ack=76 Win=5856 Len=0 TSV=88257293 TSER=170478511 12 0.007198 192.168.50.128 192.168.50.129 TCP mysql > 57338 [ACK] Seq=76 Ack=78 Win=5792 Len=0 TSV=170478511 TSER=88257293 mysql CLI: No. Time Source Destination Protocol Info 1 0.000000 192.168.50.129 192.168.50.128 TCP 57339 > mysql [SYN] Seq=0 Win=5840 Len=0 MSS=1460 TSV=88268477 TSER=0 WS=5 2 0.000453 192.168.50.128 192.168.50.129 TCP mysql > 57339 [SYN, ACK] Seq=0 Ack=1 Win=5792 Len=0 MSS=1460 TSV=170489695 TSER=88268477 WS=5 3 0.000671 192.168.50.129 192.168.50.128 TCP 57339 > mysql [ACK] Seq=1 Ack=1 Win=5856 Len=0 TSV=88268477 TSER=170489695 4 0.001337 192.168.50.128 192.168.50.129 MySQL Server Greeting proto=10 version=5.1.26-rc-log 5 0.001504 192.168.50.129 192.168.50.128 TCP 57339 > mysql [ACK] Seq=1 Ack=64 Win=5856 Len=0 TSV=88268477 TSER=170489695 6 0.001685 192.168.50.129 192.168.50.128 MySQL Login Request user=tungsten db=test 7 0.001872 192.168.50.128 192.168.50.129 TCP mysql > 57339 [ACK] Seq=64 Ack=72 Win=5792 Len=0 TSV=170489695 TSER=88268477 8 0.001984 192.168.50.128 192.168.50.129 MySQL Response OK 9 0.003621 192.168.50.129 192.168.50.128 MySQL Request Query 10 0.004348 192.168.50.128 192.168.50.129 MySQL Response 11 0.004764 192.168.50.129 192.168.50.128 MySQL Request Query 12 0.005434 192.168.50.128 192.168.50.129 MySQL Response 13 0.005698 192.168.50.129 192.168.50.128 MySQL Request Show Fields 14 0.005941 192.168.50.128 192.168.50.129 MySQL Response 15 0.006104 192.168.50.129 192.168.50.128 MySQL Request Show Fields 16 0.006336 192.168.50.128 192.168.50.129 MySQL Response 17 0.006438 192.168.50.129 192.168.50.128 MySQL Request Show Fields 18 0.006650 192.168.50.128 192.168.50.129 MySQL Response 19 0.006760 192.168.50.129 192.168.50.128 MySQL Request Show Fields 20 0.006975 192.168.50.128 192.168.50.129 MySQL Response 21 0.007077 192.168.50.129 192.168.50.128 MySQL Request Show Fields 22 0.007325 192.168.50.128 192.168.50.129 MySQL Response 23 0.007884 192.168.50.129 192.168.50.128 MySQL Request Show Fields 24 0.008327 192.168.50.128 192.168.50.129 MySQL Response 25 0.008498 192.168.50.129 192.168.50.128 MySQL Request Show Fields 26 0.008752 192.168.50.128 192.168.50.129 MySQL Response 27 0.008859 192.168.50.129 192.168.50.128 MySQL Request Show Fields 28 0.009156 192.168.50.128 192.168.50.129 MySQL Response 29 0.009269 192.168.50.129 192.168.50.128 MySQL Request Show Fields 30 0.009541 192.168.50.128 192.168.50.129 MySQL Response 31 0.009662 192.168.50.129 192.168.50.128 MySQL Request Show Fields 32 0.009892 192.168.50.128 192.168.50.129 MySQL Response 33 0.010019 192.168.50.129 192.168.50.128 MySQL Request Show Fields 34 0.010301 192.168.50.128 192.168.50.129 MySQL Response 35 0.010411 192.168.50.129 192.168.50.128 MySQL Request Show Fields 36 0.010637 192.168.50.128 192.168.50.129 MySQL Response 37 0.010762 192.168.50.129 192.168.50.128 MySQL Request Show Fields 38 0.011006 192.168.50.128 192.168.50.129 MySQL Response 39 0.011109 192.168.50.129 192.168.50.128 MySQL Request Show Fields 40 0.011342 192.168.50.128 192.168.50.129 MySQL Response 41 0.011470 192.168.50.129 192.168.50.128 MySQL Request Query 42 0.011854 192.168.50.128 192.168.50.129 MySQL Response 43 0.051473 192.168.50.129 192.168.50.128 TCP 57339 > mysql [ACK] Seq=312 Ack=1521 Win=8000 Len=0 TSV=88268490 TSER=170489698 44 1.131630 192.168.50.129 192.168.50.128 MySQL Request Quit 45 1.131800 192.168.50.129 192.168.50.128 TCP 57339 > mysql [FIN, ACK] Seq=317 Ack=1521 Win=8000 Len=0 TSV=88268760 TSER=170489698 46 1.132174 192.168.50.128 192.168.50.129 TCP mysql > 57339 [FIN, ACK] Seq=1521 Ack=318 Win=5792 Len=0 TSV=170489978 TSER=88268760 47 1.132274 192.168.50.129 192.168.50.128 TCP 57339 > mysql [ACK] Seq=318 Ack=1522 Win=8000 Len=0 TSV=88268760 TSER=170489978