Merge branch 'phaser-deregister' into 'ibm-trunk'
Correct phaser usage to deregister parties as they arrive
Without this, the phaser overflows after 64k connections. As there is only one party per executor, I don't deregister it, nor the server thread.
See merge request !72
diff --git a/yoko-core/src/main/java/org/apache/yoko/orb/OB/GIOPConnectionThreaded.java b/yoko-core/src/main/java/org/apache/yoko/orb/OB/GIOPConnectionThreaded.java
index c6d6c2e..92aef1e 100644
--- a/yoko-core/src/main/java/org/apache/yoko/orb/OB/GIOPConnectionThreaded.java
+++ b/yoko-core/src/main/java/org/apache/yoko/orb/OB/GIOPConnectionThreaded.java
@@ -244,9 +244,9 @@
private void arrive() {
if ((properties_ & Property.CreatedByClient) != 0)
- orbInstance_.getClientPhaser().arrive();
+ orbInstance_.getClientPhaser().arriveAndDeregister();
else
- orbInstance_.getServerPhaser().arrive();
+ orbInstance_.getServerPhaser().arriveAndDeregister();
}
// ----------------------------------------------------------------