Git Product home page Git Product logo

Comments (3)

jpd236 avatar jpd236 commented on May 2, 2024

The underlying HTTP stack is failing to connect to the server. It could be an issue with the mobile network not actually providing connectivity to the site in question, or the site itself being down.

I would suggest trying a simple HttpUrlConnection and seeing if it works to the same endpoint, as this seems very unlikely to be an issue in Volley specifically.

If you have further troubles I might suggest trying the [email protected] usergroup or a site like StackOverflow as this site is for tracking bugs in Volley.

from volley.

felipheggaliza avatar felipheggaliza commented on May 2, 2024

I am switching from Wifi to Mobile data, and it seems that Volley is using the same old socket to make the new request. For example: The app was online using wifi, but when the app switches to mobile data, volley is attempting to send request using that "wifi socket".

I am trying to catch this error and force volley to use a new socket. Do you how can I do socket renew on Volley?

from volley.

jpd236 avatar jpd236 commented on May 2, 2024

Are you seeing this failure on requests that are started fresh after changing the network?

I did notice a user hitting this issue in https://stackoverflow.com/questions/38572938/android-network-not-reconnecting-when-wifi-drops because they hardcoded a process-wide default network to one value and didn't update it to another. Are you doing anything with ConnectivityManager/Network objects in your app? Do you have sample code you can provide and steps to reproduce the problem?

In general I believe things should be working fine by default in that if you switch from Wi-Fi to mobile data, future requests (those queued after the switch is complete) should go over mobile data with no problems.

from volley.

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.