Subject: | please document bug about slow first connect call on windows |
The source here is this: http://rt.openssl.org/Ticket/Display.html?id=2100#txn-48262
Due to that issue, on Windows, with ssl enabled, the first connect call will take an amount of time that is proportional to the heap size/complexity of the perl program, reaching 30 seconds and more in bad cases.
Workarounds for this are:
- Do your connect call as early as possible, before any other Perl code is loaded.
- Disable SSL via set PGSSLMODE=disable in the shell (doesn't work in Perl itself), or ;sslmode=disable in the DSN.