/*在请求的情况下,mysql 监听在此处*/
0 Mysqld_socket_listener::listen_for_connection_event (this=0x6888a60) at sql/conn_handler/socket_connection.cc:866
#1 0x0000000000ec0151 in Connection_acceptor<Mysqld_socket_listener>::connection_event_loop (this=0x6884e40) at sql/conn_handler/connection_acceptor.h:73
#2 0x0000000000eb7a2c in mysqld_main (argc=99, argv=0x2db5ef8) at sql/mysqld.cc:5132
#3 0x0000000000eae8f7 in main (argc=3, argv=0x7fffffffe3c8) at sql/main.cc:32
Channel_info* Mysqld_socket_listener::listen_for_connection_event()
857| {
858| #ifdef HAVE_POLL
/*等待客户端的连接请求*/
859| int retval= poll(&m_poll_info.m_fds[0], m_socket_map.size(), -1);
860| #else
861| m_select_info.m_read_fds= m_select_info.m_client_fds;
862| int retval= select((int) m_select_info.m_max_used_connection,
863| &m_select_info.m_read_fds, 0, 0, 0);
864| #endif
mysql收到tcp连接请求的过程
最新推荐文章于 2021-10-14 18:58:37 发布