[CONC-257] Add option to send proxy protocol header Created: 2017-05-31  Updated: 2017-10-04  Resolved: 2017-10-04

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: 2.3.2
Fix Version/s: 3.0.2

Type: Task Priority: Minor
Reporter: Esa Korhonen Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 0
Labels: None


 Description   

Support for sending a proxy protocol header in Connector-C would be useful for MaxScale and any other client connecting to a server expecting the header. The header contents should be manually set by the client application to have maximal adaptability.

Currently, for example the Percona server does not accept connections without the header if the connection originates from a proxy-enabled address. The ability to "spoof" the header for a normal connection would allow enabling the proxy feature on the server.

For details of the proxy protocol, see http://www.haproxy.org/download/1.8/doc/proxy-protocol.txt.



 Comments   
Comment by Vladislav Vaintroub [ 2017-05-31 ]

assigning to myself, since I have to do that anyway for server testing

Comment by Vladislav Vaintroub [ 2017-10-04 ]

It was fixed a while ago, do not remember which version exactly, in some 3.0.x

Generated at Thu Feb 08 03:04:01 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.