2

This is not a duplicate question, because I did not find anything about this error with "volley".

My problem happens when the connection is very slow, one of my services returns this error:

         VolleyError={NoConnectionError@5719}"com.android.volley.NoConnectionError: java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer)
         VolleyError.networkResponse.data=java.lang.NullPointerException
         VolleyError.networkResponse.statusCode=java.lang.NullPointerException
         VolleyError.networkResponse=null

I have searched a lot, and find this

         System.setProperty("http.keepAlive","false");

but I don't know if that right.

halfer
  • 19,824
  • 17
  • 99
  • 186
bsma
  • 88
  • 1
  • 10

1 Answers1

0

This may help you : android-volley-econnres‌​et

Too , in my case problem was from server side and proxy that after enable VPN proxy , problem resolved.

enter image description here

checkout server side

Community
  • 1
  • 1
Saeid
  • 2,261
  • 4
  • 27
  • 59