We want to increase the session timeout on API calls, specifically on create/update leads REST API call http://developers.marketo.com/documentation/rest/createupdate-leads/.
What is the best practice for setting the session timeout, and how do you accomplish this? 90 seconds is default timeout.
This is a hard coded timeout and cannot be increased, but you might try using asyncProcessing as a workaround
On occasion, we receive "SocketTimeoutException: Read timed out" error when our upsertLeads request takes longer than the session timeout. Right now we do not set asyncProcessing param on these calls.
We have a timeout on our calls and it is not enough for upsertLeads. Is there a recommended timeout you recommend from the client side? Our rest client issues the upsertLeads and it will time out if it doesn’t see a response in the specified timeout (our default is 60 seconds). We can override client-side timeout for all Marketo calls if you think it might be helpful in this case -- perhaps to 90 seconds?
The server-side timeout for syncLead is 90 seconds, so that would leave you in better shape. If you still have issues with timeouts then, you'll want to reduce your batch size.