added default socket timeout. fixes #237

This commit is contained in:
clinton-hall 2014-01-13 10:53:59 +10:30
parent a20302d4bc
commit 555124b6b1
7 changed files with 13 additions and 0 deletions

View file

@ -7,6 +7,7 @@ import datetime
import time
import json
import logging
import socket
import Transcoder
from nzbToMediaEnv import *
@ -14,6 +15,7 @@ from nzbToMediaUtil import *
from nzbToMediaSceneExceptions import process_all_exceptions
Logger = logging.getLogger()
socket.setdefaulttimeout(int(TimeOut)) #initialize socket timeout.
def get_imdb(nzbName, dirName):