rsocket-java icon indicating copy to clipboard operation
rsocket-java copied to clipboard

requestStream is limited to Integer.MAX_VALUE messages

Open vklidu opened this issue 1 year ago • 0 comments

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.

vklidu avatar Jul 18 '24 09:07 vklidu