Closed RTException closed 4 months ago
On the Unirest-Java Documentation page, the following code can still be found:
The setting does not exist in 4 because the Java client does not support it. I have just removed it from the documentation,
FYI there is a discussion about adding this to java: https://bugs.openjdk.org/browse/JDK-8258397
Thank you.
You are right. I have checked the JDK source code and found that java.net.http.HttpClient
no longer supports the socketTimeout
method. I hope it will be supported in the subsequent versions of JDK because this setting is still very useful in some cases.
Hi, In version 3.13.6, I could use
Config#socketTimeout(int inMillies)
to set the read timeout for responses. However, in the latest version, this method has been removed. What other ways can I use to set the timeout for both sending and receiving data, in order to control the maximum waiting time for synchronous calls?