[ 
https://issues.apache.org/jira/browse/SSHD-1294?focusedWorklogId=807141&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-807141
 ]

ASF GitHub Bot logged work on SSHD-1294:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 08/Sep/22 18:32
            Start Date: 08/Sep/22 18:32
    Worklog Time Spent: 10m 
      Work Description: tomaswolf opened a new pull request, #243:
URL: https://github.com/apache/mina-sshd/pull/243

   Ensure that the IoProcessor pool is disposed, otherwise a selector may not 
get closed, leading to a file handle leak.




Issue Time Tracking
-------------------

            Worklog Id:     (was: 807141)
    Remaining Estimate: 0h
            Time Spent: 10m

> 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
>         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: 10m
>  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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to