okhttp icon indicating copy to clipboard operation
okhttp copied to clipboard

Invalid use of SingleClientConnManager

Open licongqi opened this issue 11 years ago • 5 comments

I used volley with okHttp 2.4 in my project, and I got this warning: SingleClientConnManager﹕ Invalid use of SingleClientConnManager: connection still allocated. Make sure to release the connection before allocating another one. Should I disable connection pooling in okHttp to avoid this warning. If I should , how to disable it? Thanks!

licongqi avatar Aug 26 '15 11:08 licongqi

That error is not coming from OkHttp..

swankjesse avatar Aug 26 '15 12:08 swankjesse

I used volley with okHttp by using this OkHttpStack, https://gist.github.com/bryanstern/4e8f1cb5a8e14c202750 When I dropped this stack, there was no problem. Dose it have something to do with OkHttp ? Thanks again!

licongqi avatar Aug 26 '15 13:08 licongqi

And is there any way to disable connection pool? I just want to have a try, because this problem has troubled me for a long time.

licongqi avatar Aug 26 '15 13:08 licongqi

You'll probably get better support asking on stackoverflow.

swankjesse avatar Aug 26 '15 17:08 swankjesse

Sorry , it's my problem, I finally find it! Thanks.

licongqi avatar Aug 27 '15 04:08 licongqi