Patch fo select ip and/or port for outgoing connections

Поиск
Список
Период
Сортировка
От Steffen Heil (Mailinglisten)
Тема Patch fo select ip and/or port for outgoing connections
Дата
Msg-id 3bdf77beeaa149aeb8972af5b586271b@exchange.sh-solutions.de
обсуждение исходный текст
Ответы Re: Patch fo select ip and/or port for outgoing connections
Список pgsql-jdbc
Hi


In our environment we had the requirement to enforce that (on a multihomed server) the database driver uses a certain
localip to connect to the database server. 
In java this can easily be archived calling "bind" on the tcp socket before calling connect.

I patched the source of the jdbc driver to make this available through the connection properties "BIND_IP" and
"BIND_PORT".
Both are optional, we are using "BIND_IP" in production code.

I attached the patch for everyone to use in any way.
(I am unsure about the contribution process and license requirements but you can use this code however you see fit).

I would be grateful, if this patch or another way to archive the same goal could be included in the next release...


Best regards,
  Steffen


Вложения

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Vladimir Sitnikov
Дата:
Сообщение: Re: PreparedStatement.setDate() behavior with OVERLAPS
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Patch fo select ip and/or port for outgoing connections