[pgpool-committers: 691] 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
------
master
Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=ee0bac759857599023da9268d82c05604b759a64
Modified Files
--------------
child.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
More information about the pgpool-committers
mailing list