Java: socket read timeout exception
•
Java
I tried to call a very heavy process
When I execute this process, I set a ridiculously large number of timeout times: 9999999
After 2 minutes, I received the following error:
I tried to confuse it a little more. I set the timeout to 3000, and as expected, after 3 seconds, I got the same error
What do you think? Why socket Setsotimeout (9999999) is set to 120000 max?
Solution
I have the same problem and the solution is not used
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码