You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eventmesh.apache.org by GitBox <gi...@apache.org> on 2022/12/23 06:59:44 UTC

[GitHub] [incubator-eventmesh] Alonexc opened a new issue, #2651: [Enhancement] new MyX509TrustManager() may fail to close stream

Alonexc opened a new issue, #2651:
URL: https://github.com/apache/incubator-eventmesh/issues/2651

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/eventmesh/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Enhancement Request
   
   ![image](https://user-images.githubusercontent.com/91315508/209287406-e348d4e1-0784-4bd2-9519-66dae5e6d0ea.png)
   located at:
   eventmesh-sdk-java/src/main/java/org/apache/eventmesh/client/http/ssl/MyX509TrustManager.java line 46
   analysis and explanation:
   The method creates an IO stream object, does not assign it to any fields, pass it to other methods that might close it, or return it, and does not appear to close the stream on all paths out of the method.  This may result in a file descriptor leak.  
   
   
   ### Describe the solution you'd like
   
   It is a good idea to use a finally block or a try-with-recourse to make sure the stream is closed.
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!


-- 
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: dev-unsubscribe@eventmesh.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org


[GitHub] [incubator-eventmesh] jonyangx commented on issue #2651: [Enhancement] new MyX509TrustManager() may fail to close stream

Posted by GitBox <gi...@apache.org>.
jonyangx commented on issue #2651:
URL: https://github.com/apache/incubator-eventmesh/issues/2651#issuecomment-1364432117

   I'd like to fix it.


-- 
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: dev-unsubscribe@eventmesh.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org


[GitHub] [incubator-eventmesh] xwm1992 closed issue #2651: [Enhancement] new MyX509TrustManager() may fail to close stream

Posted by GitBox <gi...@apache.org>.
xwm1992 closed issue #2651: [Enhancement] new MyX509TrustManager() may fail to close stream
URL: https://github.com/apache/incubator-eventmesh/issues/2651


-- 
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: dev-unsubscribe@eventmesh.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org