org/apache/river/test/impl/mahalo/RandomStressTest.td occasionally runs out of Jeri mux sessions, causing test failure.
The JERI Multiplexing protocol is limited to 128 sessions, however reading implementation source code, checks on the maximum and minimum limits are performed while the session value is stored in a 32 bit integer. Conversions are performed between byte and int that is compatible with unsigned 8 bit integer conversion.
Session is currently defined in the documentation as a 7-bit integer, we can change this to an unsigned 8 bit integer to allow a maximum of 256 sessions, without breaking the protocol.
Note that an increasing the number of sessions further that 256 is not possible without breaking the JERI Mux protocols backward compatibility.
org/apache/river/test/impl/mahalo/RandomStressTest.td occasionally runs out of Jeri mux sessions, causing test failure.
The JERI Multiplexing protocol is limited to 128 sessions, however reading implementation source code, checks on the maximum and minimum limits are performed while the session value is stored in a 32 bit integer. Conversions are performed between byte and int that is compatible with unsigned 8 bit integer conversion.
Session is currently defined in the documentation as a 7-bit integer, we can change this to an unsigned 8 bit integer to allow a maximum of 256 sessions, without breaking the protocol.
Note that an increasing the number of sessions further that 256 is not possible without breaking the JERI Mux protocols backward compatibility.