diff options
author | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2009-03-26 20:17:27 -0300 |
---|---|---|
committer | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2009-03-26 20:17:27 -0300 |
commit | 96e02e57166a37f79c10f5f9afc1f9185e1110a7 (patch) | |
tree | 5c1613304d29947b6024b159a6d7ca222b80c3c8 /mysql-test/r/shm.result | |
parent | 4ee0f6a64c89f226a113688ab6f894f9e18ffa74 (diff) | |
download | mariadb-git-96e02e57166a37f79c10f5f9afc1f9185e1110a7.tar.gz |
Bug#33899: Deadlock in mysql_real_query with shared memory connections
The problem is that the read and write methods of the shared
memory transport (protocol) didn't react to asynchronous close
events, which could lead to a lock up as the client would wait
(until time out) for a server response that will never come.
The solution is to also wait for close events while waiting
for I/O from or to the server.
mysql-test/r/shm.result:
Add test case result for Bug#33899
mysql-test/t/shm.test:
Add test case for Bug#33899
vio/viosocket.c:
Also wait for close events.
Diffstat (limited to 'mysql-test/r/shm.result')
-rw-r--r-- | mysql-test/r/shm.result | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/r/shm.result b/mysql-test/r/shm.result index 09adebad10f..9d555e9878c 100644 --- a/mysql-test/r/shm.result +++ b/mysql-test/r/shm.result @@ -2152,4 +2152,11 @@ Warnings: Warning 1052 Column 'kundentyp' in group statement is ambiguous drop table t1; mysqld is alive +SET @max_allowed_packet= @@global.max_allowed_packet; +SET @net_buffer_length= @@global.net_buffer_length; +SET GLOBAL max_allowed_packet= 1024; +SET GLOBAL net_buffer_length= 1024; +ERROR 1153 (08S01) at line 1: Got a packet bigger than 'max_allowed_packet' bytes +SET GLOBAL max_allowed_packet= @max_allowed_packet; +SET GLOBAL net_buffer_length= @net_buffer_length; End of 5.0 tests. |