Skip to content

Commit

Permalink
soap client: agrego timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
reingart committed Feb 23, 2011
1 parent 7ced86c commit 0d396f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions soap.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
__license__ = "LGPL 3.0"
__version__ = "1.0"

import httplib2
import httplib2
from simplexml import SimpleXMLElement

class SoapFault(RuntimeError):
Expand Down Expand Up @@ -54,7 +54,7 @@ def __init__(self, location = None, action = None, namespace = None,
self.__soap_ns = soap_ns

if not proxy:
self.http = httplib2.Http()
self.http = httplib2.Http(timeout=60)
else:
import socks
##httplib2.debuglevel=4
Expand Down

0 comments on commit 0d396f8

Please sign in to comment.