GithubHelp home page GithubHelp logo

Bug: no recycling of HttpClient about datadroid HOT 3 CLOSED

saik0 avatar saik0 commented on June 14, 2024
Bug: no recycling of HttpClient

from datadroid.

Comments (3)

saik0 avatar saik0 commented on June 14, 2024

Ah, AndroidHtpClient new(instance) returns an HttpClient, but none of our retrieveResponseFromService() methods take one as a paramater. Should be easy enough.

from datadroid.

foxykeep avatar foxykeep commented on June 14, 2024

As said on the other bugs, I'm currently rewriting NetworkConnection to make it more usable and fix some issues and I'll try to find a way to be able to recycle the client.
The main problem is that 90% of the time it will have a lot of changes. Especially since depending on the Android version we shouldn't always use an HttpClient. (Starting with GingerBread, the Android team recommends to use HTTPUrlConnection. I'm currently working on changing that seemlessly for the developer http://android-developers.blogspot.fr/2011/09/androids-http-clients.html)

from datadroid.

foxykeep avatar foxykeep commented on June 14, 2024

Datadroid v2 now uses URLHttpConnection. so the recycling is not anymore needed

from datadroid.

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.