Skip to content

fix: limit the size of an event read by EventStreamReader - #1604

Merged
jlouvel merged 2 commits into
3.0from
fix/sse-reader-event-limit
Nov 2, 2026
Merged

jlouvel merged 2 commits into
3.0from
fix/sse-reader-event-limit

fix: don't count the SSE byte order mark in the event size, keep the …

ea3cbb5
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Nov 2, 2026 in 48s

Annotations

Check warning on line 219 in org.restlet/src/main/java/org/restlet/representation/EventStreamReader.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Reduce the total number of break and continue statements in this loop to use at most one.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGZ_Csl7JDpWu2qTDfn&open=AaGZ_Csl7JDpWu2qTDfn&pullRequest=1604

Check failure on line 217 in org.restlet/src/main/java/org/restlet/representation/EventStreamReader.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 25 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGNm5_Gq8wOaMrNYFeA&open=AaGNm5_Gq8wOaMrNYFeA&pullRequest=1604

Check warning on line 201 in org.restlet/src/test/java/org/restlet/representation/EventStreamTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'java.io.IOException', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGNm6DOq8wOaMrNYFeB&open=AaGNm6DOq8wOaMrNYFeB&pullRequest=1604