BenD10 opened a new pull request, #43:
URL: https://github.com/apache/qpid-proton-j/pull/43

   https://issues.apache.org/jira/browse/PROTON-2347
   
   When an IOException is thrown, the SocketChannel was not properly
   cleaned up which caused a file descriptor leak.
   
   To confirm the fix, I used the reproducer available in the above JIRA and 
monitored open file handles.
   
   Using 0.33.10:
   ```
   ben@ubuntu:~$ date && lsof -p 34755 | wc -l
   Tue 23 Aug 2022 03:24:14 PM EDT
   60086
   ben@ubuntu:~$ date && lsof -p 34755 | wc -l
   Tue 23 Aug 2022 03:24:17 PM EDT
   85005
   ben@ubuntu:~$ date && lsof -p 34755 | wc -l
   Tue 23 Aug 2022 03:24:21 PM EDT
   116822
   ben@ubuntu:~$ date && lsof -p 34755 | wc -l
   Tue 23 Aug 2022 03:24:27 PM EDT
   155766
   ben@ubuntu:~$ date && lsof -p 34755 | wc -l
   Tue 23 Aug 2022 03:24:33 PM EDT
   209201
   ben@ubuntu:~$ date && lsof -p 34755 | wc -l
   Tue 23 Aug 2022 03:24:41 PM EDT
   275748
   ```
   
   With the fix on 0.34.0-SNAPSHOT
   ```
   ben@ubuntu:~/git/qpid-proton-j$ date && lsof -p 36940 | wc -l
   Tue 23 Aug 2022 03:40:23 PM EDT
   44
   ben@ubuntu:~/git/qpid-proton-j$ date && lsof -p 36940 | wc -l
   Tue 23 Aug 2022 03:40:26 PM EDT
   40
   ben@ubuntu:~/git/qpid-proton-j$ date && lsof -p 36940 | wc -l
   Tue 23 Aug 2022 03:40:32 PM EDT
   44
   ben@ubuntu:~/git/qpid-proton-j$ date && lsof -p 36940 | wc -l
   Tue 23 Aug 2022 03:40:47 PM EDT
   44
   ben@ubuntu:~/git/qpid-proton-j$ date && lsof -p 36940 | wc -l
   Tue 23 Aug 2022 03:40:54 PM EDT
   44
   ben@ubuntu:~/git/qpid-proton-j$ date && lsof -p 36940 | wc -l
   Tue 23 Aug 2022 03:41:01 PM EDT
   44
   
   ```


-- 
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-unsubscr...@qpid.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to