Is there any possibility of file deadlock when using keystore

16 views
Skip to first unread message

pravin

unread,
Nov 2, 2012, 1:21:17 AM11/2/12
to didisof...@googlegroups.com
Is there any possibility of file deadlock when using keystore method KeyStore.OpenFile to decrypt a pgp encrypted a file.
What will happen if two simultaneous instance of the application try to access the same keystore at the same time to decrypt a pgp file?

didisoft

unread,
Nov 2, 2012, 8:21:44 AM11/2/12
to didisof...@googlegroups.com
Hi Pravin,

From the uppercase OpenFile method signature I guess that you are talking about OpenPGP Library for .NET.

The OpenFile method uses internally FileInfo.OpenRead which is not guaranteed to be thread safe.

We have switched it to the static method File.OpenRead which is guaranteed to be thread safe.

Please download an updated installation and check is this locking still there.

Cheers,
Katerina

Reply all
Reply to author
Forward
0 new messages