Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i close connection #276

Closed
Saurav-Suman opened this issue Jun 13, 2019 · 4 comments
Closed

how can i close connection #276

Saurav-Suman opened this issue Jun 13, 2019 · 4 comments

Comments

@Saurav-Suman
Copy link

Saurav-Suman commented Jun 13, 2019

I am not able to close the connection which is initiated and due to this my backend server connection pool is increased and i am getting bellow error for some requests and when load is high.

Error =>com.android.volley.NoConnectionError: java.net.ConnectException: Failed to connect to IP:443 :: Message =>java.net.ConnectException: Failed to connect to IP:443

@jpd236
Copy link
Collaborator

jpd236 commented Jun 13, 2019

As of Volley 1.1.1 we do close the HttpUrlConnection when you are using HurlStack:

62c1901#diff-7b52a41e4e3e2e1401e6486bee665d19

If you're not observing this behavior, we will need more details about your app, the version of Volley you are using, the HttpStack you are using, and ideally some sample code which exhibits the issue.

@Saurav-Suman
Copy link
Author

@jpd236 We are using Volley 1.1.0 and we are also using HurlStack.

mRequestQueue = Volley.newRequestQueue(AppController.getInstance(), new HurlStack(null, pinnedSSLSocketFactory()));

@jpd236
Copy link
Collaborator

jpd236 commented Jun 14, 2019

OK, can you try updating to 1.1.1? There was a bug fix in that release related to closing connections in HurlStack. (#138).

@Saurav-Suman
Copy link
Author

Thanks man

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants