MySQL Forums
Forum List  »  Router & Proxy

Re: Hanging up on clients
Posted by: Jan Kneschke
Date: August 15, 2007 12:47AM

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

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

Options: ReplyQuote

Written By
August 14, 2007 05:07PM
Re: Hanging up on clients
August 15, 2007 12:47AM
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.