Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 427760

Summary: Set socket timeout when connecting to cloud foundry
Product: [ECD] Orion Reporter: John Arthorne <john.arthorne>
Component: DeploymentAssignee: John Arthorne <john.arthorne>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: maciej.bendkowski, Szymon.Brandys
Version: unspecifiedFlags: john.arthorne: review? (Szymon.Brandys)
Target Milestone: 5.0 RC3   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Fix to set socket timeout john.arthorne: review?

Description John Arthorne CLA 2014-02-09 21:58:40 EST
I20140206

We have seen cases of calls to cloud foundry timing out indefinitely. We should consider setting a socket timeout when connecting to avoid it blocking forever. We could maybe do this in HttpUtil#configureHttpMethod...

params = method.getParams
params.setSoTimeout(60000)
method.setParams(params)
Comment 1 John Arthorne CLA 2014-02-14 15:53:01 EST
Created attachment 239966 [details]
Fix to set socket timeout
Comment 2 John Arthorne CLA 2014-02-15 16:33:10 EST
I am seeing timeouts again today so I have pushed this change to master to let me test it on live servers over the weekend. Leaving open to confirm fix and get necessary reviews.
Comment 3 John Arthorne CLA 2014-02-21 15:24:23 EST
Marking fixed.