瀏覽代碼

Comment on the purpose of password file caching

Source commit: 9a1037a40075bcb0f5e85bfb2d3fd3905f23d069
Martin Prikryl 3 年之前
父節點
當前提交
a00efae3bb
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      source/core/SessionData.cpp

+ 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;