I’m using the Force.com Web service connector for GAE.  When logging
into sfdc using this SDK, more often than not of late, the connection
times out from my development server after 5 seconds.

Looking at the SDK code in question:

http://code.google.com/p/sfdc-wsc/source/browse/branches/gae/java/src/com/sforce/ws/transport/GAEHttpTransport.java

I see that the original code creates a request like so:

request = new HTTPRequest(url,HTTPMethod.POST);

and then invokes URLFetchService’s fetch using that request.

I modified this code so that the request is created in this way:

request = new HTTPRequest(url,HTTPMethod.POST,
FetchOptions.Builder.withDeadline(10.0));

However at runtime the connection is still timing out after 5 seconds.

I would appreciate any suggestions on how to increase the timeout, if
this is even possible.

Thanks,
David

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.


Reply via email to