Wang1rrr opened a new issue, #6974:
URL: https://github.com/apache/rocketmq-dashboard/issues/6974

   ### Description
   The browser SSE reader checks an oversized unterminated event only before 
draining complete frames. If one network chunk contains a complete heartbeat 
(or agent event) followed by an oversized partial event, the initial check sees 
a boundary and skips the size guard. After draining the complete frame, the 
oversized remainder stays buffered while the reader waits for another network 
chunk. If the connection goes quiet, it reports the 30-second idle timeout 
instead of the existing event-size error.
   
   ### Reproduction
   Return one SSE chunk containing `:hb\n\n` followed by more than 
`MAX_SSE_EVENT_CHARS` characters with no event terminator, and keep the stream 
open. The current reader retains the oversized event until its next read 
completes or times out.
   
   ### Expected behavior
   Enforce the per-event buffer limit immediately after complete frames have 
been consumed. Multiple complete, individually bounded events in one large 
network chunk must still be accepted.
   
   ### Version
   `rocketmq-studio` at c34535db0819d02f68e50a856cb3d2614f0dc5dd.
   
   I plan a focused fix with regressions for coalesced heartbeat/data frames 
and for valid large chunks containing several bounded events.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to