Closed JensRantil closed 8 years ago
I had only set the read timeout because that was the one causing issues. Makes sense to me that the connect timeout should also be set to a reasonable value.
@avram Thanks for getting back on this. I'll make sure to submit a pull request.
Also, I should note that I'm not the maintainer of this project, so I don't know what Mixpanel feels about the change. Let's hope they agree!
@avram No no, I got that :) Just wanted to check with you if there was a special reason for not setting it.
12 only fixated a read timeout. However, a sane Java library should also set connect timeout, which defaults to infinity. Without setting it, the client risks locking up an entire application that has fixed number of threads (which most do).
See also 9f945f39423de7408d4ad220cdada0721b383607.