mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-16 02:02:53 -07:00
added default socket timeout. fixes #237
This commit is contained in:
parent
a20302d4bc
commit
555124b6b1
7 changed files with 13 additions and 0 deletions
|
@ -5,6 +5,7 @@ import ConfigParser
|
|||
import logging
|
||||
import shutil
|
||||
import time
|
||||
import socket
|
||||
|
||||
import Transcoder
|
||||
from nzbToMediaEnv import *
|
||||
|
@ -12,6 +13,8 @@ from nzbToMediaUtil import *
|
|||
from nzbToMediaSceneExceptions import process_all_exceptions
|
||||
|
||||
Logger = logging.getLogger()
|
||||
TimeOut = 4 * int(TimeOut) # SickBeard needs to complete all moving and renaming before returning the log sequence via url.
|
||||
socket.setdefaulttimeout(int(TimeOut)) #initialize socket timeout.
|
||||
|
||||
|
||||
class AuthURLOpener(urllib.FancyURLopener):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue