0

I am calling Http Post request using HTTP client in a loop. After a few requests, I am getting java.net.SocketException: Connection timed out. I have tried increasing the timeout in setConnectionTimeout() and setSoTimeout() but still the issue persists.

1 Answer 1

0

The Timeout contains:

ConnectionTimeout.
ReadTimeout.
WriteTimeout.
Exception.

check it what happened in it.

hope to help you.

Sign up to request clarification or add additional context in comments.

1 Comment

ConnectionTimeout is happenning

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.