John Rice wrote:
Shawn Walker wrote:
Remember that multiple attempts are made to contact a repository before giving up. I believe the default timeout is 30 seconds, and we try four times, so that would account for the two minutes.
Do we have any control over this? Would be nice to reduce it, 2 mins is an awfully long time to wait in the GUI.

I'd ask Krister about changing it before you do so, but, you can change each of the following as you see fit (these examples are from client.py):

# This control how long the socket library waits before a timeout.
socket.setdefaulttimeout(int(os.environ.get("PKG_CLIENT_TIMEOUT", "30"))) # in seconds

# Override default PKG_TIMEOUT_MAX if a value has been specified
# in the environment.
global_settings.PKG_TIMEOUT_MAX = int(os.environ.get("PKG_TIMEOUT_MAX", global_settings.PKG_TIMEOUT_MAX))

I'd ask you to not override these if the user has set the matching environment variables.

Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to