Re: libpq WSACleanup is not needed
От | Andrew Chernow |
---|---|
Тема | Re: libpq WSACleanup is not needed |
Дата | |
Msg-id | 4975FB20.30505@esilo.com обсуждение исходный текст |
Ответ на | Re: libpq WSACleanup is not needed (Jeroen Vermeulen <jtv@xs4all.nl>) |
Ответы |
Re: libpq WSACleanup is not needed
|
Список | pgsql-hackers |
Jeroen Vermeulen wrote: > > Would there be any serious harm in: > > 1. doing the WSAStartup() when the first connection is opened, but > The only problem is how to detect the first connection. In a threaded environment you'd have to perform locking in connectdb, which is probably not going to fly. >>but does it say something similar about shutdown? From the WSACleanup docs: "The WSACleanup function typically leads to protocol-specific helper DLLs being unloaded. As a result, the WSACleanup function should not be called from the DllMain function in a application DLL. This can potentially cause deadlocks" -- Andrew Chernow eSilo, LLC every bit counts http://www.esilo.com/
В списке pgsql-hackers по дате отправления: