mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ncanis2 (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (DIRMINA-714) Packet sequence is unordered in multi thread.
Date Wed, 03 Jun 2009 04:00:09 GMT

    [ https://issues.apache.org/jira/browse/DIRMINA-714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715790#action_12715790
] 

ncanis2 edited comment on DIRMINA-714 at 6/2/09 8:58 PM:
---------------------------------------------------------

please check follow issue number.

https://cwiki.apache.org/jira/browse/DIRMINA-653

in my case..
Synchronizing on the session.write makes the problem go away for 1 hour.; 

synchronized (session) 
{ 
  future = session.write(message); 
} 

I think you should check DIRMINA-653 also.

I'll test more for long time with synchronized write.

Thank you.

      was (Author: ncanis2):
    please check follow issue number.

https://cwiki.apache.org/jira/browse/DIRMINA-653

in my case..
Synchronizing on the session.write makes the problem go away for 1 hour.; 

synchronized (session) 
{ 
  future = session.write(message); 
} 

I thing you should check that.

I'll test more for long time with synchronized write.

Thank you.
  
> Packet sequence is unordered in multi thread.
> ---------------------------------------------
>
>                 Key: DIRMINA-714
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-714
>             Project: MINA
>          Issue Type: Bug
>          Components: Filter
>    Affects Versions: 2.0.0-M5
>         Environment: xp
>            Reporter: ncanis2
>             Fix For: 2.0.0-M7
>
>         Attachments: mina_m6_seq_test_src.zip
>
>
> Hi.
> Packet sequence is unordered.
> = Server & Client = 
> chain.addLast("codec", new ProtocolCodecFilter(rcf));
> chain.addLast("executor", getExecuteFilter());    => OrderedThreadPoolExecutor c =
new OrderedThreadPoolExecutor(20,100);
> If server send 1,2,3,4,5,6 , client receive 1,2,3,4,6  from server.
> Clients : 100.
> where I am wrong? 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message