pfirmstone / JGDMS

Infrastructure for providing secured micro services, that are dynamically discoverable and searchable over ipv6 networks
https://pfirmstone.github.io/JGDMS/
Apache License 2.0
14 stars 4 forks source link

Jini Extensible Remote Invocation (Jini ERI) Multiplexing Protocol is limited to 128 sessions #88

Closed pfirmstone closed 5 years ago

pfirmstone commented 5 years ago

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.