okhttp
okhttp copied to clipboard
3.8.1 can not reuse connection?
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?
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
https://stackoverflow.com/questions/45244345/does-okhttp3-reuse-connection-by-default