Hi,
I noticed that stunnel already does round-robin load balancing of
connections when the DNS name specified by the "connect" option resolves
to multiple IP addresses.
Here is a simple patch which allows the "connect" option to accept a
comma separated list of names instead of just a single name.
This can be used to load balance tunnelled connections across several
servers. For example, to load balance HTTPS connections across 3 HTTP
servers (localhost:80, anotherhost:8080 and anotherhost:8081), we could
specify:
[https]
accept = 443
connect = 80,anotherhost:8080,anotherhost:8081
Regards,
Luke.
**********************************************************************************************
Important Note
This email (including any attachments) contains information which is
confidential and may be subject to legal privilege. If you are not
the intended recipient you must not use, distribute or copy this
email. If you have received this email in error please notify the
sender immediately and delete this email. Any views expressed in this
email are not necessarily the views of XPlan Technology.
It is the duty of the recipient to virus scan and otherwise test the
information provided before loading onto any computer system.
Xplan Technology does not warrant that the
information is free of a virus or any other defect or error.
**********************************************************************************************