Commits

Aleš Erjavec committed c0221fc

Added comment to requests use of keep-alive.

Comments (0)

Files changed (1)

obiKEGG2/service.py

 KEGG_WDSL = "http://soap.genome.jp/KEGG.wsdl"
 
 import urllib2
+
 def suds_service():
     """ Return an suds service object with kegg api service methods.
     
 
     """
     from suds.client import Client
-    # TODO: extend suds.transport HttpTransport
-    # to support keep-alive 
     client = Client(KEGG_WDSL)
     return client.service
 
             url = request.url
             message = request.message
             headers = request.headers
+            # This does not seem to work, every request seems
+            # to open a new connection
             headers["Connection"] = "Keep-Alive"
             try:
                 response = requests.post(url, data=message,