[
https://issues.apache.org/jira/browse/DIRMINA-516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561410#action_12561410
]
Mark Webb commented on DIRMINA-516:
-----------------------------------
I have a few comments...
1. What logic would go into the sessionCreating() method that would ensure that
it completes before sessionCreated() or messageReceived()? I guess whatever
logic you are looking to put into the sessionCreated() method would go into
your own IoHandler's sessionCreated() method.
2. There are filters that can help you with this problem already. If you
cannot find the exact filter, writing a new one is very easy.
..my 2 cents
Mark
> Provide IoHandler.sessionCreating() method
> ------------------------------------------
>
> Key: DIRMINA-516
> URL: https://issues.apache.org/jira/browse/DIRMINA-516
> Project: MINA
> Issue Type: Improvement
> Components: Core
> Environment: All
> Reporter: chenliangde
>
> is better IoHandler provides a sessionCreating Method, reasons:
> 1. to take care the things have to be done before session created.
> Some times messageReceived() is called before sessionCreated()
> returned.
> 2. To stop session creation. If the connection count limitation is reached ,
> or the connection comes from blocked IP,
> the server can prevent the session creation to save resource.
>
> Thanks.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.