You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Thomas Wolf (Jira)" <ji...@apache.org> on 2022/09/09 06:15:00 UTC
[jira] [Resolved] (SSHD-1294) Default SshClient FD leak because Selector not closed
[ https://issues.apache.org/jira/browse/SSHD-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Wolf resolved SSHD-1294.
-------------------------------
Fix Version/s: 2.9.2
Resolution: Fixed
> Default SshClient FD leak because Selector not closed
> -----------------------------------------------------
>
> Key: SSHD-1294
> URL: https://issues.apache.org/jira/browse/SSHD-1294
> Project: MINA SSHD
> Issue Type: Bug
> Affects Versions: 2.8.0
> Reporter: zhangbing
> Assignee: Thomas Wolf
> Priority: Major
> Fix For: 2.9.2
>
> Attachments: image-2022-09-07-09-52-41-327.png, image-2022-09-07-10-06-03-182.png, image-2022-09-07-10-24-00-969.png, image-2022-09-07-10-24-35-550.png, image-2022-09-07-10-25-14-435.png, image-2022-09-07-10-30-41-233.png, image-2022-09-07-10-42-15-818.png, image-2022-09-07-11-21-33-635.png
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> The default SshClient SshClient.setUpDefaultClient() using MinaServiceFactory.The NioProcessor is created and open the Selector. The Selector.close() is called in doDispose().
> !image-2022-09-07-09-52-41-327.png!
> !image-2022-09-07-10-06-03-182.png!
> !image-2022-09-07-10-42-15-818.png!
> When creating NioSocketConnector,the field createdProcessor is always false.
> !image-2022-09-07-10-24-00-969.png!
> !image-2022-09-07-10-24-35-550.png!
> !image-2022-09-07-10-25-14-435.png!
> Because createdProcessor is always false, processor.dispose() is never executed.
> !image-2022-09-07-10-30-41-233.png!
> The dispose() in SimpleIoProcessorPool will not be executed. So,the dispose() and doDisopose in NioProcessor is nerver executed. The Selector in NioProcessor is not closed.
> FD leak information with the losf command:
> !image-2022-09-07-11-21-33-635.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org