zhangjixing / sfdc-wsc

Automatically exported from code.google.com/p/sfdc-wsc
0 stars 0 forks source link

Calling a long running web service causes GaeHttpTransport timeout #32

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Call a remote web service which takes longer than 10 seconds to respond 

What is the expected output? What do you see instead?
Expect the method to return a value, instead get 

com.sforce.ws.transport.GaeHttpTransport getContent: getContent: Timeout while 
fetching: http://<my.host>/PortalFour42/LiveSSO.asmx

What version of the product are you using? On what operating system?
wsc-18.jar and wsc-gae.jar on GAE 1.3.8

Original issue reported on code.google.com by adam.bra...@gmail.com on 27 Oct 2010 at 6:03

GoogleCodeExporter commented 8 years ago
Set Read/Connection Timeout in ConnectorConfig. Setting ReadTimeout only will 
solve the issue. 
for ex. 
ConnectorConfig.setConnectionTimeout(integer timeout in millis)
ConnectorConfig.setReadTimeout(integer timeout in millis)

Original comment by abhinavgupta697 on 30 Oct 2010 at 4:25

GoogleCodeExporter commented 8 years ago
I changed this settings to 60000, but always in 10 seconds timeout error 
happens.

Original comment by kcunha.a...@gmail.com on 17 Oct 2011 at 7:28