diff options
author | unknown <msvensson@neptunus.(none)> | 2006-02-16 12:02:38 +0100 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2006-02-16 12:02:38 +0100 |
commit | d430e2474fbffe05307d1a2b9697db6e43c8b211 (patch) | |
tree | 90ada62285927ff547b71f85b69ed2a228a4dfc1 /regex | |
parent | 3c9952a1ae437eacb7f52a5e9519d63b410d4424 (diff) | |
download | mariadb-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 'regex')
0 files changed, 0 insertions, 0 deletions