Socket Timeout Exception
I am trying to copy components from one RTC server to another. I have created a repository workspace that flows from the stream on the old server and during the creation pick the option to “Use another repository” = ‘myuser@new_server’. Then I can flow the content from the old server into the new. This works fine for small amounts of data but when I attempt to copy larger components I get a Socket Timeout Exception: The message displayed in the Eclipse client look like this :
Message from new_server : Requesting ….for round 3 from http ://old_server
Then after five minutes or so it fails.
Does anyone have any idea how I can overcome this problem ?
Thanks
|
Accepted answer
Hi, Peter
Not sure if you have checked this technote:
(in the newer version, default connection time out is 300s(5 mins))
Peter Turvey selected this answer as the correct answer
Comments
Peter Turvey
commented Jan 29 '19, 4:26 a.m.
Thanks for that. Looks like it could well be the problem. I will give it a go.
|
One other answer
You can effectively handle it by define a connection timeout and later handle it by using a try-catch block. From the client side you can use the following method and set the timeout parameter:
clientSocket.connect(SocketAddress,timeout)
From the server side you can use the following method and set the timeout parameter:
serverSocket.setSoTimeout(timeout)
Also, if you are a programmer, you can surround the socket connection part of your code in a java try/catch/finally and handle the error in the catch. You might try connecting a second time, or try connecting to another possible socket, or simply exit the program cleanly.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.