2012-06-19, 19:31
This issue was raised a couple of years ago - http://trac.xbmc.org/ticket/10960 - and I've noticed that at least some of the current plugins that use setdefaulttimeout, don't call it when running under Windows.
E.g. from the bbc iplayer plugin:
Is this still necessary? Is there a best practice documented for this? E.g. the bbc iplayer seems to exclude all platforms except xbox and those that are linux-based, so what about iOS etc.?
E.g. from the bbc iplayer plugin:
Code:
. environment = os.environ.get( "OS", "xbox" )
try:
timeout = int(__addon__.getSetting('socket_timeout'))
except:
timeout = 5
if environment in ['Linux', 'xbox'] and timeout > 0:
setdefaulttimeout(timeout)
Is this still necessary? Is there a best practice documented for this? E.g. the bbc iplayer seems to exclude all platforms except xbox and those that are linux-based, so what about iOS etc.?