[
https://issues.jboss.org/browse/JGRP-1893?page=com.atlassian.jira.plugin....
]
Bela Ban commented on JGRP-1893:
--------------------------------
Apparently, the JDK on Windows doesn't implement
{{DatagramSocketImpl.setTimeToLive()}}. Can you try a different JDK (e.g. JDK 8), to see
if it implements this method ?
If not, Windows users will have to live with this until JGroups 4.0 (which switches to
NIO.2). You can make the error message go away though by removing {{ip_ttl}} from the
config.
ENCRYPT: Thread safety issues during key changes
------------------------------------------------
Key: JGRP-1893
URL:
https://issues.jboss.org/browse/JGRP-1893
Project: JGroups
Issue Type: Bug
Reporter: Tero Leppikangas
Assignee: Bela Ban
For symmetric encryption, ENCRYPT has members with shared state: secret key, version and
ciphers. In order for to provide consistent state between different threads accessing
these members, they should be synchronized.
I have implemented one solution by wrapping the state in separate object which can be
found here:
https://github.com/tepitebson/JGroups/tree/ENCRYPT_Thread_safety
I also have replaced the WeakHashMap holding the previous keys with Cache in google's
guava library so my solution probably is not suitable for an official solution.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)