summaryrefslogtreecommitdiff
path: root/mysql-test/r/wait_timeout.result
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-02-16 12:02:38 +0100
committerunknown <msvensson@neptunus.(none)>2006-02-16 12:02:38 +0100
commitd430e2474fbffe05307d1a2b9697db6e43c8b211 (patch)
tree90ada62285927ff547b71f85b69ed2a228a4dfc1 /mysql-test/r/wait_timeout.result
parent3c9952a1ae437eacb7f52a5e9519d63b410d4424 (diff)
downloadmariadb-git-d430e2474fbffe05307d1a2b9697db6e43c8b211.tar.gz
Bug#2845 client fails to reconnect if using TCP/IP
- Detect that connection to server has been broken in "net_clear". Since net_clear is always called before we send command to server, we can be sure that server has not received the command. mysql-test/r/wait_timeout.result: Update test result mysql-test/t/wait_timeout-master.opt: Decrease wait_timeout value to avoid unneccessary sleeps mysql-test/t/wait_timeout.test: Test that same error message is returned when disconnected regardless of connection is socket or TCP Decrease sleep times sql/net_serv.cc: Make "net_clear" detect if connection with server has been broken by performing a select. If the select returns that there are data to read but no data can be read, that means the connection is broken. Signal disconnected to "write" functions by setting error to 2.
Diffstat (limited to 'mysql-test/r/wait_timeout.result')
-rw-r--r--mysql-test/r/wait_timeout.result8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/r/wait_timeout.result b/mysql-test/r/wait_timeout.result
index 56232e481c0..683986abf5d 100644
--- a/mysql-test/r/wait_timeout.result
+++ b/mysql-test/r/wait_timeout.result
@@ -6,3 +6,11 @@ ERROR HY000: MySQL server has gone away
select 3;
3
3
+select 1;
+1
+1
+select 2;
+ERROR HY000: MySQL server has gone away
+select 3;
+3
+3