Duansg opened a new pull request, #3775:
URL: https://github.com/apache/hertzbeat/pull/3775

   ## What's changed?
   
   Please refer to: [#3772](https://github.com/apache/hertzbeat/issues/3772)
   
   Ignore exceptions occurring when the SSE connection is terminated, this HTTP 
response has entered an error state or been closed and can no longer be 
manipulated with methods such as send or complete.
   
   1. If an exception occurs during `emitter.complete()`, it may prevent the 
existing connections from being cleared, potentially leading to a memory leak.
   2. In this case, the exception merely wraps the IOException present in the 
response. In other words, the exception already exists, and it indicates that 
the response is no longer available and cannot send any further data.
   
   ## Checklist
   
   - [x]  I have read the [Contributing 
Guide](https://hertzbeat.apache.org/docs/community/code_style_and_quality_guide)
   - [ ]  I have written the necessary doc or comment.
   - [x]  I have added the necessary unit tests and all cases have passed.
   
   ## Add or update API
   
   - [ ] I have added the necessary [e2e 
tests](https://github.com/apache/hertzbeat/tree/master/e2e) and all cases have 
passed.


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to