Looking through the ExtendScript DOM for InDesign Server CS6, I noticed this:
app.serverSettings.sessionTimeout (number, readonly) The session timeout (in seconds) for soap sessions.
The default seems to be 180 seconds. I'm assuming this means that if my script takes more than 180 seconds to finish, the soap session will time out.
If this is the case, how can I increase the soap session timeout?