Re: Hanging up on clients
Refusing connections in connect_server() is done by sending a
function connect_server()
proxy.response = {
type = proxy.MYSQLD_PACKET_ERR,
errmsg = "Access denied"
}
return proxy.PROXY_SEND_RESULT
end
To close a connection to the master in read_query() can you use a side-effect and set proxy.connection.backend_ndx = 0. This is used to move the proxy->server connection into the connection pool and should result in a close of the client connection when you try to write something on it.
--
Jan Kneschke, MySQL Enterprise Tools
Subject
Views
Written By
Posted
3259
August 14, 2007 05:07PM
Re: Hanging up on clients
2179
August 15, 2007 12:47AM
1955
August 15, 2007 11:44AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.