[
https://issues.apache.org/jira/browse/DIRMINA-735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12744940#action_12744940
]
yujun zhu commented on DIRMINA-735:
-----------------------------------
I have resolve this question,and I want to share my solution with you.If your
client uses flex and your server uses mina(1.7--2.0),you must open 843 port in
the server.Because flex will send "" to 843 port before sending message to the
server port(for exemple:9999).If 843 can not feedback the policy file to
client,client will send "" to 9999 after 3 seconds,but your 9999 can't handle
that,this word can't go in the hander.So,your server will close this session.
My solution : I wrote a filter that can handle the ""
在2009-08-18,"Julien Vermillard (JIRA)" <[email protected]> 写道:
[
https://issues.apache.org/jira/browse/DIRMINA-735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12744564#action_12744564
]
Julien Vermillard commented on DIRMINA-735:
-------------------------------------------
just a stupid guess : do you use a ping/pong message between the two machine
for keeping the connection alive ?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
> SessionClosed called before data is received?
> ---------------------------------------------
>
> Key: DIRMINA-735
> URL: https://issues.apache.org/jira/browse/DIRMINA-735
> Project: MINA
> Issue Type: Bug
> Affects Versions: 2.0.0-M6
> Environment: JAVA + MINA +as3
> Reporter: yujun zhu
> Fix For: 2.0.0-M7
>
> Original Estimate: 240h
> Remaining Estimate: 240h
>
> **
> *
> */
> @Override
> public void sessionOpened(IoSession ssn) throws Exception {
> System.out.println("session open for " + ssn.getRemoteAddress());
> }
> /**
> *
> */
> @Override
> public void sessionClosed(IoSession ssn) throws Exception {
> System.out.println("session closed from " + ssn.getRemoteAddress());
> }
> /**
> *
> * @throws Exception
> */
> @Override
> public void messageReceived(IoSession ssn, Object msgString) throws
> Exception{
> String s = (String)msgString;
> if(s.length()>1&&Msg.isJSONObject(s)){
> JSONObject msgObject=JSONObject.fromObject(s);
> System.out.println("Receive the Client'msg:"+msgObject);
> MsgBroadCast.MsgSend( ssn, msgObject);
>
> }
> the above is the server code in my project(using mina 1.1.7).
> When the project starts at the beginning,everything is normal.
> session open for 58.129.47.21
> Receive the Client'msg: XXXXXXXXXXX.
> because I want to let the client keep connection(It is a chat system),
> session is not closed.
> but after a day or more time ,it happens as follow:
> session open for 118.124.56.22
> session closed from 118.124.56.22
> the server can't receive the msg from the client. I am sure the client is not
> closed automaticly.
> I can't find the reason . I can't understand why the server is ok at the
> beginning ,but after a long time ,the server can't receive the msg.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.