Apache Directory Project - [jira] Commented: (DIRMINA-45) DemuxingProtocolCodecFactory.doDecode is called even af

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > June 2005 > [jira] Commented: (DIRMINA-45) DemuxingProtocolCodecFactory.doDecode is called even af





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [jira] Commented: (DIRMINA-45) DemuxingProtocolCodecFactory.doDecode is called even af
Trustin Lee (JIRA)

2005-06-06, 7:48 am

[ http://issues.apache.org/jira/brows...ts#action_66534 ]

Trustin Lee commented on DIRMINA-45:
------------------------------------

Sorry for a late reply.

Adam gave me a clue so that I can fix this issue finally. Could you please retry with the recent snapshot?

Thanks,
Trustin

> DemuxingProtocolCodecFactory.doDecode is called even after the buffer is empty.
> -------------------------------------------------------------------------------
>
> Key: DIRMINA-45
> URL: http://issues.apache.org/jira/browse/DIRMINA-45
> Project: Directory MINA
> Type: Bug
> Versions: 0.7.1
> Environment: JDK1.4.2
> Reporter: Alex
> Assignee: Trustin Lee
> Fix For: 0.7.2


>
> I am not sure if it is a bug or I just misunderstood something.
> I am implementing a protocol and use Demuxing* classes.
> When I return MessageDecoder.OK from my MessageDecoder's decode method, MINA tries repeatedly calls this method again. If I return MessageDecoder.NEED_DATA everything goes fine.
> So, I would expect completely reversal behaviour.
> I checked CumulativeProtocolDecoder and DemuxingProtocolCodecFactory classes.
> In CumulativeProtocolDecoder.decode it says that doDecode is invoked repeatedly until it returns false. Fine. But what "false" means here? I would guess that it means that buffer was completely decoded and no more data is needed. But DemuxingProtocolCod

edFactory.doDecode returns true if decoder returned MessageDecoder.OK and false if decoder returned MessageDecoder.NEED_DATA. Isn't wrong here?
> Alex


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secur...nistrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com