Giter Site home page Giter Site logo

Comments (11)

phax avatar phax commented on July 29, 2024

I looked at the code, but I think the _resend you are mentioning simply does nothing. Will investigate.

from as2-lib.

phax avatar phax commented on July 29, 2024

It does nothing because by default nTries delivers -1 (IProcessorSenderModule.DEFAULT_RETRIES) which is handled in doResend as don't resend.
Anyway I added the possibility to specify the retry count to the AS2ClientSettings.

Update: when specifying a retry count at the client, an NPE because of the missing MessageProcessor pops up.

from as2-lib.

mreinigjr avatar mreinigjr commented on July 29, 2024

Hi Philip,

Is this option of resending also settable in the partnership or config file in as2-server?

Thanks,
Michael

from as2-lib.

phax avatar phax commented on July 29, 2024

No. As far as I remember this is a setting of the sender module... Please file a separate issue to make this configurable per partnership. Anyway resending currently does not work when using the standalone client.

Am 01. September 2015 15:26:18 MESZ, schrieb Michael Reinig [email protected]:

Hi Philip,

Is this option of resending also settable in the partnership or config
file in as2-server?

Thanks,
Michael


Reply to this email directly or view it on GitHub:
#7 (comment)

Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

from as2-lib.

jochenberger avatar jochenberger commented on July 29, 2024

Yes, there's an additional problem: -1 is treated as "don't retry" but "documented" as "retry forever" in IProcessorSenderModule.
However, I'm talking about something else. If the message could not be sent after the specified number of retries (which can also be 0), IMHO this should be an error condition and thus throw an exception. Currently. this seems to be ignored.
By the way, I don't use AS2Client*, I'm working with AS2Message and AS2SenderModule directly. AS2Client doesn't work well if you start from the payload and a Partnership.

from as2-lib.

phax avatar phax commented on July 29, 2024

Okay, I changed the resend documentation now in a way so that "0" means no retries. I also added an "in-memory" resender module (InMemoryResenderModule) which also uses the polling mechanism but does not store the items to disk.

Additional I think that the retries happened forever and would never stop. Now, if the number of retries is exceeded, an exception is thrown.

Next thing to come is a synchronous resender that does not use polling but will resend in the same thread as the failed message.

from as2-lib.

phax avatar phax commented on July 29, 2024

I now added an ImmediateResenderModule resender module that immediately tries to resend the message without persisting it on disk. If the retry count is exceeded the original exception is thrown.

from as2-lib.

jochenberger avatar jochenberger commented on July 29, 2024

Sounds good, thank you. I'll try to test this soon, I'm currently quite busy with other things.

from as2-lib.

jochenberger avatar jochenberger commented on July 29, 2024

I just gave it a spin, works fine. Thanks. Is there already a schedule for 2.2.0? :-)

from as2-lib.

phax avatar phax commented on July 29, 2024

Excellent - good to hear.
There is no real schedule but I'd like to resolve phax/as2-server#15 before the relase. Even though it is a tricky one I'm quite optimistic that we can do it this week. Hope that's okay for you.

from as2-lib.

jochenberger avatar jochenberger commented on July 29, 2024

Sure, take your time. Thanks for the estimate.

from as2-lib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.