ugu5ma / jscep

Automatically exported from code.google.com/p/jscep
MIT License
0 stars 0 forks source link

NonceQueue Is Not Thread Safe #63

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Use multi-thread to get certification from a remote server.

What is the expected output? What do you see instead?
Expecting to see performance improvement without any problem, but NPE is thrown 
sometimes.

What version of the product are you using? On what operating system?
1.2.1, linux.

Please provide any additional information below.
The NPE is thrown when the EnrolmentTransaction validates the Nonce. The 
problem is that NonceQueue is backed by a LinkedList and not thread safe, so if 
multiple threads are checking at the same time there is a chance that the queue 
is in an intermediate state.

Original issue reported on code.google.com by ruisvo...@gmail.com on 22 Jun 2012 at 12:23

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1379.

Original comment by da...@grant.org.uk on 22 Jun 2012 at 9:56

GoogleCodeExporter commented 9 years ago

Original comment by da...@grant.org.uk on 21 Aug 2012 at 11:55