1
0
Эх сурвалжийг харах

Comment on the purpose of password file caching

Source commit: 9a1037a40075bcb0f5e85bfb2d3fd3905f23d069
Martin Prikryl 3 жил өмнө
parent
commit
a00efae3bb

+ 2 - 0
source/core/SessionData.cpp

@@ -1811,6 +1811,8 @@ void __fastcall TSessionData::RecryptPasswords()
   EncryptKey = EncryptKey;
 }
 //---------------------------------------------------------------------
+// Caching read password files, particularly when the file is actually a named pipe
+// that does not support repeated reading.
 static std::unique_ptr<TCriticalSection> PasswordFilesCacheSection(TraceInitPtr(new TCriticalSection()));
 typedef std::map<UnicodeString, UnicodeString> TPasswordFilesCache;
 static TPasswordFilesCache PasswordFilesCache;