mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 14:03:07 +01:00
Fixed bug CORE-5436 : [FB3 SC] Server hangs (under load test)
This commit is contained in:
parent
b1006f7588
commit
835bd1a550
@ -2207,11 +2207,13 @@ SharedMemoryBase::SharedMemoryBase(const TEXT* filename, ULONG length, IpcObject
|
||||
|
||||
if (file_handle == INVALID_HANDLE_VALUE)
|
||||
{
|
||||
if ((err == ERROR_SHARING_VIOLATION))
|
||||
if ((err == ERROR_SHARING_VIOLATION) || (err == ERROR_ACCESS_DENIED))
|
||||
{
|
||||
if (!init_flag) {
|
||||
CloseHandle(event_handle);
|
||||
}
|
||||
|
||||
if (retry_count < 200) // 2 sec
|
||||
goto retry;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user