Clear Nio2Session attributes under lock when session is closed
@@ -274,8 +274,10 @@ public class Nio2Session extends AbstractCloseable implements IoSession {
}
}
+ synchronized (attributes) {
attributes.clear();
}
+ }
@Override // co-variant return
public Nio2Service getService() {
