okhttp icon indicating copy to clipboard operation
okhttp copied to clipboard

3.8.1 can not reuse connection?

Open leelit opened this issue 9 years ago • 2 comments

i used okhttp 3.8.1 to execute 5 simple get request whose server supports keep-alive, then i used tcpdump to check if it can reuse the connection, it created 5 sockets and didn't reuse the connection.

i changed okhttp to httpurlconnection to do the same thing, it did use the same socket.

what's the reason?

leelit avatar Jul 20 '17 10:07 leelit

Thanks for your question. This issue tracker is only for bug reports with test cases and feature requests. Please ask usage questions on Stack Overflow. https://stackoverflow.com/questions/tagged/okhttp

swankjesse avatar Jul 20 '17 11:07 swankjesse

https://stackoverflow.com/questions/45244345/does-okhttp3-reuse-connection-by-default

leelit avatar Jul 21 '17 18:07 leelit