0

Very long timeout when connecting to Shotgun

Hi,

Today's server interruption highlighted that there is no timeout set when connecting to Shotgun. It seems to default to something like 5 minutes.

Also, it seems that because Toolkit has its own version of the API (in  core/python/tank_vendor/), it means we could get both API to freeze for 5 minutes.

I looked at the code in shotgun.py and found this:

class _Config(object):

"""Container for the client configuration."""

def __init__(self):
self.timeout_secs = None

Nowhere is this variable then read on a config file or anything. Is there a way to specify a more sensible value than the default?

I ended up hard-coding a 5 seconds timeout so artists would get errors but at least could get some work done.

Benoit

0 comments

Please sign in to leave a comment.