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
|
@ -4,12 +4,14 @@ import os.path
|
|||
import time
|
||||
import ConfigParser
|
||||
import logging
|
||||
import socket
|
||||
|
||||
from nzbToMediaEnv import *
|
||||
from nzbToMediaUtil import *
|
||||
from nzbToMediaSceneExceptions import process_all_exceptions
|
||||
|
||||
Logger = logging.getLogger()
|
||||
socket.setdefaulttimeout(int(TimeOut)) #initialize socket timeout.
|
||||
|
||||
class AuthURLOpener(urllib.FancyURLopener):
|
||||
def __init__(self, user, pw):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue