Skip to content

Commit

Permalink
HEAD:(zeroc-ice/ice@017cbd9f5d) Fix bugs in idle timeout logic (Czero…
Browse files Browse the repository at this point in the history
…c-ice/ice#) (zeroc-ice/ice#3156)
  • Loading branch information
bernardnormier authored and temp committed Nov 16, 2024
1 parent 7c0a532 commit 2c1c165
Show file tree
Hide file tree
Showing 1,513 changed files with 1,967 additions and 1,967 deletions.
12 changes: 6 additions & 6 deletions slice2cpp/cpp/src/IceGrid/Internal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1585,11 +1585,11 @@ IceGrid::ReplicaSessionPrx::_iceI_setAdapterDirectProxy(const ::std::shared_ptr<
{
ex.ice_throw();
}
catch(const AdapterExistsException&)
catch(const AdapterNotExistException&)
{
throw;
}
catch(const AdapterNotExistException&)
catch(const AdapterExistsException&)
{
throw;
}
Expand Down Expand Up @@ -1700,11 +1700,11 @@ IceGrid::InternalRegistryPrx::_iceI_registerNode(const ::std::shared_ptr<::IceIn
{
ex.ice_throw();
}
catch(const NodeActiveException&)
catch(const PermissionDeniedException&)
{
throw;
}
catch(const PermissionDeniedException&)
catch(const NodeActiveException&)
{
throw;
}
Expand Down Expand Up @@ -1750,11 +1750,11 @@ IceGrid::InternalRegistryPrx::_iceI_registerReplica(const ::std::shared_ptr<::Ic
{
ex.ice_throw();
}
catch(const ReplicaActiveException&)
catch(const PermissionDeniedException&)
{
throw;
}
catch(const PermissionDeniedException&)
catch(const ReplicaActiveException&)
{
throw;
}
Expand Down
16 changes: 8 additions & 8 deletions slice2cs/cpp/src/IceGrid/Internal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5521,11 +5521,11 @@ private void _iceI_setAdapterDirectProxy(string iceP_adapterId, string iceP_repl
{
throw ex;
}
catch(AdapterExistsException)
catch(AdapterNotExistException)
{
throw;
}
catch(AdapterNotExistException)
catch(AdapterExistsException)
{
throw;
}
Expand Down Expand Up @@ -5924,11 +5924,11 @@ private void _iceI_registerNode(InternalNodeInfo? iceP_info, NodePrx? iceP_prx,
{
throw ex;
}
catch(NodeActiveException)
catch(PermissionDeniedException)
{
throw;
}
catch(PermissionDeniedException)
catch(NodeActiveException)
{
throw;
}
Expand Down Expand Up @@ -5980,11 +5980,11 @@ private void _iceI_registerReplica(InternalReplicaInfo? iceP_info, InternalRegis
{
throw ex;
}
catch(ReplicaActiveException)
catch(PermissionDeniedException)
{
throw;
}
catch(PermissionDeniedException)
catch(ReplicaActiveException)
{
throw;
}
Expand Down Expand Up @@ -6503,8 +6503,6 @@ public abstract class NodeSessionDisp_ : Ice.ObjectImpl, NodeSession

public abstract class DatabaseObserverDisp_ : Ice.ObjectImpl, DatabaseObserver
{
public abstract void applicationInit(int serial, ApplicationInfo[] applications, Ice.Current current);

public abstract void applicationAdded(int serial, ApplicationInfo desc, Ice.Current current);

public abstract void applicationRemoved(int serial, string name, Ice.Current current);
Expand All @@ -6517,6 +6515,8 @@ public abstract class DatabaseObserverDisp_ : Ice.ObjectImpl, DatabaseObserver

public abstract void adapterUpdated(AdapterInfo info, Ice.Current current);

public abstract void applicationInit(int serial, ApplicationInfo[] applications, Ice.Current current);

public abstract void adapterRemoved(string id, Ice.Current current);

public abstract void objectInit(ObjectInfo[] objects, Ice.Current current);
Expand Down
152 changes: 76 additions & 76 deletions slice2cs/cpp/test/Ice/operations/Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13606,6 +13606,44 @@ public abstract class MyDerivedClassDisp_ : Ice.ObjectImpl, MyDerivedClass

public abstract MyStruct1 opMyStruct1(MyStruct1 opMyStruct1, Ice.Current current);

public abstract void shutdown(Ice.Current current);

public abstract bool supportsCompress(Ice.Current current);

public abstract void opVoid(Ice.Current current);

public abstract byte opByte(byte p1, byte p2, out byte p3, Ice.Current current);

public abstract bool opBool(bool p1, bool p2, out bool p3, Ice.Current current);

public abstract long opShortIntLong(short p1, int p2, long p3, out short p4, out int p5, out long p6, Ice.Current current);

public abstract double opFloatDouble(float p1, double p2, out float p3, out double p4, Ice.Current current);

public abstract string opString(string p1, string p2, out string p3, Ice.Current current);

public abstract MyEnum opMyEnum(MyEnum p1, out MyEnum p2, Ice.Current current);

public abstract MyClassPrx? opMyClass(MyClassPrx? p1, out MyClassPrx? p2, out MyClassPrx? p3, Ice.Current current);

public abstract Structure opStruct(Structure p1, Structure p2, out Structure p3, Ice.Current current);

public abstract byte[] opByteS(byte[] p1, byte[] p2, out byte[] p3, Ice.Current current);

public abstract bool[] opBoolS(bool[] p1, bool[] p2, out bool[] p3, Ice.Current current);

public abstract long[] opShortIntLongS(short[] p1, int[] p2, long[] p3, out short[] p4, out int[] p5, out long[] p6, Ice.Current current);

public abstract double[] opFloatDoubleS(float[] p1, double[] p2, out float[] p3, out double[] p4, Ice.Current current);

public abstract string[] opStringS(string[] p1, string[] p2, out string[] p3, Ice.Current current);

public abstract byte[][] opByteSS(byte[][] p1, byte[][] p2, out byte[][] p3, Ice.Current current);

public abstract bool[][] opBoolSS(bool[][] p1, bool[][] p2, out bool[][] p3, Ice.Current current);

public abstract long[][] opShortIntLongSS(short[][] p1, int[][] p2, long[][] p3, out short[][] p4, out int[][] p5, out long[][] p6, Ice.Current current);

public abstract double[][] opFloatDoubleSS(float[][] p1, double[][] p2, out float[][] p3, out double[][] p4, Ice.Current current);

public abstract string[][] opStringSS(string[][] p1, string[][] p2, out string[][] p3, Ice.Current current);
Expand Down Expand Up @@ -13708,44 +13746,6 @@ public abstract class MyDerivedClassDisp_ : Ice.ObjectImpl, MyDerivedClass

public abstract MyClass_OpMDict2MarshaledResult opMDict2(global::System.Collections.Generic.Dictionary<string, string> p1, Ice.Current current);

public abstract void shutdown(Ice.Current current);

public abstract bool supportsCompress(Ice.Current current);

public abstract void opVoid(Ice.Current current);

public abstract byte opByte(byte p1, byte p2, out byte p3, Ice.Current current);

public abstract bool opBool(bool p1, bool p2, out bool p3, Ice.Current current);

public abstract long opShortIntLong(short p1, int p2, long p3, out short p4, out int p5, out long p6, Ice.Current current);

public abstract double opFloatDouble(float p1, double p2, out float p3, out double p4, Ice.Current current);

public abstract string opString(string p1, string p2, out string p3, Ice.Current current);

public abstract MyEnum opMyEnum(MyEnum p1, out MyEnum p2, Ice.Current current);

public abstract MyClassPrx? opMyClass(MyClassPrx? p1, out MyClassPrx? p2, out MyClassPrx? p3, Ice.Current current);

public abstract Structure opStruct(Structure p1, Structure p2, out Structure p3, Ice.Current current);

public abstract byte[] opByteS(byte[] p1, byte[] p2, out byte[] p3, Ice.Current current);

public abstract bool[] opBoolS(bool[] p1, bool[] p2, out bool[] p3, Ice.Current current);

public abstract long[] opShortIntLongS(short[] p1, int[] p2, long[] p3, out short[] p4, out int[] p5, out long[] p6, Ice.Current current);

public abstract double[] opFloatDoubleS(float[] p1, double[] p2, out float[] p3, out double[] p4, Ice.Current current);

public abstract string[] opStringS(string[] p1, string[] p2, out string[] p3, Ice.Current current);

public abstract byte[][] opByteSS(byte[][] p1, byte[][] p2, out byte[][] p3, Ice.Current current);

public abstract bool[][] opBoolSS(bool[][] p1, bool[][] p2, out bool[][] p3, Ice.Current current);

public abstract long[][] opShortIntLongSS(short[][] p1, int[][] p2, long[][] p3, out short[][] p4, out int[][] p5, out long[][] p6, Ice.Current current);

public override string ice_id(Ice.Current current) => ice_staticId();

public static new string ice_staticId() => "::Test::MyDerivedClass";
Expand Down Expand Up @@ -13839,6 +13839,44 @@ namespace Test2
{
public abstract class MyDerivedClassDisp_ : Ice.ObjectImpl, MyDerivedClass
{
public abstract void shutdown(Ice.Current current);

public abstract bool supportsCompress(Ice.Current current);

public abstract void opVoid(Ice.Current current);

public abstract byte opByte(byte p1, byte p2, out byte p3, Ice.Current current);

public abstract bool opBool(bool p1, bool p2, out bool p3, Ice.Current current);

public abstract long opShortIntLong(short p1, int p2, long p3, out short p4, out int p5, out long p6, Ice.Current current);

public abstract double opFloatDouble(float p1, double p2, out float p3, out double p4, Ice.Current current);

public abstract string opString(string p1, string p2, out string p3, Ice.Current current);

public abstract global::Test.MyEnum opMyEnum(global::Test.MyEnum p1, out global::Test.MyEnum p2, Ice.Current current);

public abstract global::Test.MyClassPrx? opMyClass(global::Test.MyClassPrx? p1, out global::Test.MyClassPrx? p2, out global::Test.MyClassPrx? p3, Ice.Current current);

public abstract global::Test.Structure opStruct(global::Test.Structure p1, global::Test.Structure p2, out global::Test.Structure p3, Ice.Current current);

public abstract byte[] opByteS(byte[] p1, byte[] p2, out byte[] p3, Ice.Current current);

public abstract bool[] opBoolS(bool[] p1, bool[] p2, out bool[] p3, Ice.Current current);

public abstract long[] opShortIntLongS(short[] p1, int[] p2, long[] p3, out short[] p4, out int[] p5, out long[] p6, Ice.Current current);

public abstract double[] opFloatDoubleS(float[] p1, double[] p2, out float[] p3, out double[] p4, Ice.Current current);

public abstract string[] opStringS(string[] p1, string[] p2, out string[] p3, Ice.Current current);

public abstract byte[][] opByteSS(byte[][] p1, byte[][] p2, out byte[][] p3, Ice.Current current);

public abstract bool[][] opBoolSS(bool[][] p1, bool[][] p2, out bool[][] p3, Ice.Current current);

public abstract long[][] opShortIntLongSS(short[][] p1, int[][] p2, long[][] p3, out short[][] p4, out int[][] p5, out long[][] p6, Ice.Current current);

public abstract double[][] opFloatDoubleSS(float[][] p1, double[][] p2, out float[][] p3, out double[][] p4, Ice.Current current);

public abstract string[][] opStringSS(string[][] p1, string[][] p2, out string[][] p3, Ice.Current current);
Expand Down Expand Up @@ -13941,44 +13979,6 @@ public abstract class MyDerivedClassDisp_ : Ice.ObjectImpl, MyDerivedClass

public abstract global::Test.MyClass_OpMDict2MarshaledResult opMDict2(global::System.Collections.Generic.Dictionary<string, string> p1, Ice.Current current);

public abstract void shutdown(Ice.Current current);

public abstract bool supportsCompress(Ice.Current current);

public abstract void opVoid(Ice.Current current);

public abstract byte opByte(byte p1, byte p2, out byte p3, Ice.Current current);

public abstract bool opBool(bool p1, bool p2, out bool p3, Ice.Current current);

public abstract long opShortIntLong(short p1, int p2, long p3, out short p4, out int p5, out long p6, Ice.Current current);

public abstract double opFloatDouble(float p1, double p2, out float p3, out double p4, Ice.Current current);

public abstract string opString(string p1, string p2, out string p3, Ice.Current current);

public abstract global::Test.MyEnum opMyEnum(global::Test.MyEnum p1, out global::Test.MyEnum p2, Ice.Current current);

public abstract global::Test.MyClassPrx? opMyClass(global::Test.MyClassPrx? p1, out global::Test.MyClassPrx? p2, out global::Test.MyClassPrx? p3, Ice.Current current);

public abstract global::Test.Structure opStruct(global::Test.Structure p1, global::Test.Structure p2, out global::Test.Structure p3, Ice.Current current);

public abstract byte[] opByteS(byte[] p1, byte[] p2, out byte[] p3, Ice.Current current);

public abstract bool[] opBoolS(bool[] p1, bool[] p2, out bool[] p3, Ice.Current current);

public abstract long[] opShortIntLongS(short[] p1, int[] p2, long[] p3, out short[] p4, out int[] p5, out long[] p6, Ice.Current current);

public abstract double[] opFloatDoubleS(float[] p1, double[] p2, out float[] p3, out double[] p4, Ice.Current current);

public abstract string[] opStringS(string[] p1, string[] p2, out string[] p3, Ice.Current current);

public abstract byte[][] opByteSS(byte[][] p1, byte[][] p2, out byte[][] p3, Ice.Current current);

public abstract bool[][] opBoolSS(bool[][] p1, bool[][] p2, out bool[][] p3, Ice.Current current);

public abstract long[][] opShortIntLongSS(short[][] p1, int[][] p2, long[][] p3, out short[][] p4, out int[][] p5, out long[][] p6, Ice.Current current);

public override string ice_id(Ice.Current current) => ice_staticId();

public static new string ice_staticId() => "::Test2::MyDerivedClass";
Expand Down
48 changes: 24 additions & 24 deletions slice2cs/cpp/test/Ice/operations/TestAMD.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10024,6 +10024,30 @@ public abstract class MyDerivedClassDisp_ : Ice.ObjectImpl, MyDerivedClass

public abstract global::System.Threading.Tasks.Task<MyStruct1> opMyStruct1Async(MyStruct1 opMyStruct1, Ice.Current current);

public abstract global::System.Threading.Tasks.Task shutdownAsync(Ice.Current current);

public abstract global::System.Threading.Tasks.Task<bool> supportsCompressAsync(Ice.Current current);

public abstract global::System.Threading.Tasks.Task opVoidAsync(Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpByteResult> opByteAsync(byte p1, byte p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpBoolResult> opBoolAsync(bool p1, bool p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpShortIntLongResult> opShortIntLongAsync(short p1, int p2, long p3, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpFloatDoubleResult> opFloatDoubleAsync(float p1, double p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpStringResult> opStringAsync(string p1, string p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpMyEnumResult> opMyEnumAsync(MyEnum p1, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpMyClassResult> opMyClassAsync(MyClassPrx? p1, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpStructResult> opStructAsync(Structure p1, Structure p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpByteSResult> opByteSAsync(byte[] p1, byte[] p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpBoolSResult> opBoolSAsync(bool[] p1, bool[] p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpShortIntLongSResult> opShortIntLongSAsync(short[] p1, int[] p2, long[] p3, Ice.Current current);
Expand Down Expand Up @@ -10140,30 +10164,6 @@ public abstract class MyDerivedClassDisp_ : Ice.ObjectImpl, MyDerivedClass

public abstract global::System.Threading.Tasks.Task<MyClass_OpMDict2MarshaledResult> opMDict2Async(global::System.Collections.Generic.Dictionary<string, string> p1, Ice.Current current);

public abstract global::System.Threading.Tasks.Task shutdownAsync(Ice.Current current);

public abstract global::System.Threading.Tasks.Task<bool> supportsCompressAsync(Ice.Current current);

public abstract global::System.Threading.Tasks.Task opVoidAsync(Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpByteResult> opByteAsync(byte p1, byte p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpBoolResult> opBoolAsync(bool p1, bool p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpShortIntLongResult> opShortIntLongAsync(short p1, int p2, long p3, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpFloatDoubleResult> opFloatDoubleAsync(float p1, double p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpStringResult> opStringAsync(string p1, string p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpMyEnumResult> opMyEnumAsync(MyEnum p1, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpMyClassResult> opMyClassAsync(MyClassPrx? p1, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpStructResult> opStructAsync(Structure p1, Structure p2, Ice.Current current);

public abstract global::System.Threading.Tasks.Task<MyClass_OpByteSResult> opByteSAsync(byte[] p1, byte[] p2, Ice.Current current);

public override string ice_id(Ice.Current current) => ice_staticId();

public static new string ice_staticId() => "::Test::MyDerivedClass";
Expand Down
Loading

0 comments on commit 2c1c165

Please sign in to comment.