pgsql: Fix race condition with BIO methods initialization in libpq with

2023-11-26 Thread Michael Paquier
Fix race condition with BIO methods initialization in libpq with threads The libpq code in charge of creating per-connection SSL objects was prone to a race condition when loading the custom BIO methods needed by my_SSL_set_fd(). As BIO methods are stored as a static variable, the initialization

pgsql: Fix race condition with BIO methods initialization in libpq with

2023-11-26 Thread Michael Paquier
Fix race condition with BIO methods initialization in libpq with threads The libpq code in charge of creating per-connection SSL objects was prone to a race condition when loading the custom BIO methods needed by my_SSL_set_fd(). As BIO methods are stored as a static variable, the initialization

pgsql: Fix race condition with BIO methods initialization in libpq with

2023-11-26 Thread Michael Paquier
Fix race condition with BIO methods initialization in libpq with threads The libpq code in charge of creating per-connection SSL objects was prone to a race condition when loading the custom BIO methods needed by my_SSL_set_fd(). As BIO methods are stored as a static variable, the initialization

pgsql: Fix race condition with BIO methods initialization in libpq with

2023-11-26 Thread Michael Paquier
Fix race condition with BIO methods initialization in libpq with threads The libpq code in charge of creating per-connection SSL objects was prone to a race condition when loading the custom BIO methods needed by my_SSL_set_fd(). As BIO methods are stored as a static variable, the initialization

pgsql: Fix race condition with BIO methods initialization in libpq with

2023-11-26 Thread Michael Paquier
Fix race condition with BIO methods initialization in libpq with threads The libpq code in charge of creating per-connection SSL objects was prone to a race condition when loading the custom BIO methods needed by my_SSL_set_fd(). As BIO methods are stored as a static variable, the initialization

pgsql: Fix race condition with BIO methods initialization in libpq with

2023-11-26 Thread Michael Paquier
Fix race condition with BIO methods initialization in libpq with threads The libpq code in charge of creating per-connection SSL objects was prone to a race condition when loading the custom BIO methods needed by my_SSL_set_fd(). As BIO methods are stored as a static variable, the initialization