[Python-apps-commits] r7772 - in packages/emesene/trunk/debian/patches (1 file)
fabreg-guest at users.alioth.debian.org
fabreg-guest at users.alioth.debian.org
Tue Nov 8 23:15:59 UTC 2011
Date: Tuesday, November 8, 2011 @ 23:15:57
Author: fabreg-guest
Revision: 7772
Added lost code into 01-Use-local-bay.contacts.msn.com.diff patch
Modified:
packages/emesene/trunk/debian/patches/01-Use-local-bay.contacts.msn.com.diff
Modified: packages/emesene/trunk/debian/patches/01-Use-local-bay.contacts.msn.com.diff
===================================================================
--- packages/emesene/trunk/debian/patches/01-Use-local-bay.contacts.msn.com.diff 2011-11-08 22:39:41 UTC (rev 7771)
+++ packages/emesene/trunk/debian/patches/01-Use-local-bay.contacts.msn.com.diff 2011-11-08 23:15:57 UTC (rev 7772)
@@ -55,7 +55,7 @@
if self._proxies and self._proxies.get('http', None):
if self._proxies['http'].type == 'http':
-@@ -100,17 +105,22 @@
+@@ -100,17 +105,32 @@
def _setup_parser(self):
self._http_parser = HTTPParser(self._transport)
@@ -72,6 +72,16 @@
+ self._on_error))
+ self._transport_handles.append(self._transport.connect("sent",
+ self._on_request_sent))
++
++ def _clean_transport(self):
++ if self._http_parser:
++ self._http_parser.disable()
++ for handle in self._parser_handles:
++ self._http_parser.disconnect(handle)
++ self._http_parser = None
++ if self._transport:
++ for handle in self._transport_handles:
++ self._transport.disconnect(handle)
def _on_status_change(self, transport, param):
if transport.get_property("status") == IoStatus.OPEN:
@@ -83,7 +93,7 @@
self._waiting_response = False
self._setup_transport()
-@@ -123,24 +133,32 @@
+@@ -123,24 +143,32 @@
if response.status >= 100 and response.status < 200:
return
if not self._waiting_response:
@@ -131,7 +141,7 @@
if len(self._outgoing_queue) > 0:
self._outgoing_queue.pop(0) # pop the request from the queue
if response.status >= 400:
-@@ -186,5 +204,7 @@
+@@ -186,5 +214,7 @@
self._process_queue()
def close(self):
More information about the Python-apps-commits
mailing list