[ 
https://issues.apache.org/jira/browse/SSHD-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bill Kuker updated SSHD-121:
----------------------------

    Attachment: SSHD-121-Proposal.patch

Here is a patch that covers this suggestion.

I didn't go with the Factory interface because I wanted to pass the 
ServerSession to the create method. The Default implementation ignores that 
parameter, but anyone providing their own factory may need it, as I do to vary 
my black list behavior based on the identity of the client.

> Add Factories to create IoAcceptors for SshServer, TcpipForwardSupport & 
> X11ForwardSupport
> ------------------------------------------------------------------------------------------
>
>                 Key: SSHD-121
>                 URL: https://issues.apache.org/jira/browse/SSHD-121
>             Project: MINA SSHD
>          Issue Type: Improvement
>    Affects Versions: 0.6.0
>            Reporter: Bill Kuker
>            Priority: Minor
>         Attachments: SSHD-121-Proposal.patch
>
>
> I would like to make it possible for applications embedding Mina SSHD to have 
> greater control over the IoAcceptors used by port forwards. I will do the 
> work and submit a patch if this effort seems valuable to the project.
> I would like to add these methods to the ServerFactoryManager interface:
>     ForwardingAcceptorFactory getTcpipForwardNioSocketAcceptorFactory();
>     ForwardingAcceptorFactory getX11ForwardNioSocketAcceptorFactory();
> Create an Interface ForwardingAcceptorFactory with:
>     public NioSocketAcceptor createNioSocketAcceptor(ServerSession ss);
> Use the ForwardingAcceptorFactory in TcpipForwardSupport and 
> X11ForwardSupport.
> Implement a DefaultForwardingAcceptorFactory to be used by default.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to