[pgpool-committers: 693] pgpool: Fix race condition when using pool_get_passwd. The file descrip

Tatsuo Ishii ishii at postgresql.org
Mon Oct 29 22:36:47 JST 2012


Fix race condition when using pool_get_passwd. The file descriptor to
pool_passwd is opened in pgpool main and pgpool child inherits
it. When concurrent connections try to authenticate md5 method, they
call pool_get_passwd and seek the fd and cause random md5 auth failure
because underlying fd is shared. Fix is, let individual pgpool child
open the file by calling pool_reopen_passwd_file.
Problem reported and analyzed by Jason Slagle in pgpool-general:1141.

Branch
------
V3_2_STABLE

Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=8e18fee1663fba81d1e56a77bc6702c6930692a8

Modified Files
--------------
child.c |   12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)



More information about the pgpool-committers mailing list