Code Monkey home page Code Monkey logo

Comments (3)

3lvis avatar 3lvis commented on June 6, 2024 1

Fix published in 5.0.3, thanks!

https://github.com/3lvis/Networking/releases/tag/5.0.3


Finding this project helpful? Consider supporting further development and support by becoming a sponsor:
👉 https://github.com/sponsors/3lvis

from networking.

3lvis avatar 3lvis commented on June 6, 2024

Hello @mkll!

1.- I think your logic makes sense, somehow the URL session configuration should have been connected to the way caching is handled in Networking. Sadly, it wasn't done that way, instead caching is handled at the call level. Whenever you make a Networking call you can decide the caching level, the default is none.

If I were to make the change now of connecting URL session configuration with how caching is handled I'm worried it might lead to inconsistent behavior, where some people using ephemeral tried to do caching here and there and it wouldn't work.

If caching is none by default and you aren't using any caching I'm surprised why this crash is even happening. Either way, it's something we need to fix.

2.- The fatalError is not necessary. I'll remove it. If we can't construct the URL in this method we should just escape instead of crashing.

3.- My answer here is similar to the 1st one, even though your logic makes sense I'm afraid it could cause unwanted behavior.

from networking.

mkll avatar mkll commented on June 6, 2024

@3lvis thanks for the clarification.
Imagine how surprised I was when I saw this crash for the first time. Whaaat? Caaache? But how? :)
As for me, removing fatalError seems to be enough to eliminate negative impact. It's just an overkill here.

from networking.

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.