ssl-big.test

来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· TEST 代码 · 共 57 行

TEST
57
字号
# Turn on ssl between the client and server# and run a number of tests-- source include/have_ssl.inc-- source include/big_test.inc--disable_warningsDROP TABLE IF EXISTS t1, t2;--enable_warnings## Bug #29579 Clients using SSL can hang the server#connect (ssl_con,localhost,root,,,,,SSL);create table t1 (a int);disconnect ssl_con;  --disable_query_log--disable_result_loglet $count= 2000;while ($count){  connect (ssl_con,localhost,root,,,,,SSL);    eval insert into t1 values ($count);  dec $count;    # This select causes the net buffer to fill as the server sends the results   # but the client doesn't reap the results. The results are larger each time  # through the loop, so that eventually the buffer is completely full  # at the exact moment the server attempts to the close the connection with  # the lock held.  send select * from t1;    # now send the quit the command so the server will initiate the shutdown.  send_quit ssl_con;     # if the server is hung, this will hang too:  connect (ssl_con2,localhost,root,,,,,SSL);    # no hang if we get here, close and retry  disconnect ssl_con2;  disconnect ssl_con;}  --enable_query_log--enable_result_logconnect (ssl_con,localhost,root,,,,,SSL);drop table t1;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?