Set timeout to 31 seconds

The API should always return in 30 seconds. The system socket timeout may be
shorter than this, so explicitly set the timeout to the value that we want.