Code Monkey home page Code Monkey logo

Comments (14)

sophokles73 avatar sophokles73 commented on May 18, 2024

Hi @evgeniynickolaev,

this is a very good observation you have made. Thanks for pointing this out and doing the debugging :-)
Your proposal for fixing it goes in the right direction, I think. However, we will need to distinguish between requests originating locally vs. requests we are sending a response to.

Would you like to create a PR for fixing it? If so, make sure to read the contribution guide ...

from californium.

eugene-nikolaev avatar eugene-nikolaev commented on May 18, 2024

Thanks for reply!
Yes, I am very keen to contribute, I'll work on it.

from californium.

sophokles73 avatar sophokles73 commented on May 18, 2024

Cool :-) Looking forward to your PR (and discussing it) ...

from californium.

eugene-nikolaev avatar eugene-nikolaev commented on May 18, 2024

This is the PR.
Now it invokes CoapHandler#onError.

Not sure if checking the message class is sufficient to cover:

However, we will need to distinguish between requests originating locally vs. requests we are sending a response to.

Also I've found this case too special to be included in BlockwiseTransferTest.

from californium.

sophokles73 avatar sophokles73 commented on May 18, 2024

However, it would still be good to have a test case for this.
I think you can create one along the lines of the org.eclipse.californium.core.test.lockstep.BlockwiseClientSideTest ...

from californium.

eugene-nikolaev avatar eugene-nikolaev commented on May 18, 2024

OK, will add

from californium.

eugene-nikolaev avatar eugene-nikolaev commented on May 18, 2024

I've pushed a test case. I don't really like it but wanted to confirm if the approach is appropriate at first.

from californium.

sophokles73 avatar sophokles73 commented on May 18, 2024

I think the test itself does exactly what it should do 👍
Why don't you like it? ;-)
I have added some proposals for simplification ...

from californium.

sophokles73 avatar sophokles73 commented on May 18, 2024

Oh, BTW: please rebase your branch onto current master ...

from californium.

eugene-nikolaev avatar eugene-nikolaev commented on May 18, 2024

Thank you)
Is it OK to smash my commits into one during rebase and push it with force?

2016-04-22 10:40 GMT+03:00 Kai Hudalla [email protected]:

Oh, BTW: please rebase your branch onto current master ...


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#36 (comment)

from californium.

sophokles73 avatar sophokles73 commented on May 18, 2024

Absolutely

from californium.

eugene-nikolaev avatar eugene-nikolaev commented on May 18, 2024

Done

from californium.

mkovatsc avatar mkovatsc commented on May 18, 2024

Hi, also thanks from my side on spotting and fixing this.

I noticed that we are more and more smeering the layers. While this is a valid fix for now, I will try to solve it purely from the BlockwiseLayer, probably by attaching a MessageObserver there on the intermediary blocks.

from californium.

sophokles73 avatar sophokles73 commented on May 18, 2024

Good idea, @mkovatsc 👍

from californium.

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.