rsocket / rsocket-java

Java implementation of RSocket
http://rsocket.io
Apache License 2.0
2.35k stars 354 forks source link

requestStream is limited to Integer.MAX_VALUE messages #1110

Open vklidu opened 1 month ago

vklidu commented 1 month ago

Expected Behavior

requestStream should continue serving messages infinitely.

Actual Behavior

After Integer.MAX_VALUE messages, no more requestN frames are sent by the client, and the server stops sending messages.

The main problem is in io.rsocket.core.StateUtils. The sum of all requestN is limited by Integer.MAX_VALUE. The best solution will be to remove the limitation on the sum of requestN completely.