From 37c3cc1e3f72ed7301e749cfc1138609e7498c8a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 5 Jul 2011 21:44:55 +0000 Subject: Initial APKBUILD for halberd Package description: To cope with heavy traffic loads, web site administrators often install load balancer devices. These machines hide (possibly) many real web servers behind a virtual IP. They receive HTTP requests and redirect them to the real web servers in order to share the traffic between them. Halberd is a tool aimed at discovering real servers behind virtual IPs. --- main/halberd/halberd-sslwrap.patch | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 main/halberd/halberd-sslwrap.patch (limited to 'main/halberd/halberd-sslwrap.patch') diff --git a/main/halberd/halberd-sslwrap.patch b/main/halberd/halberd-sslwrap.patch new file mode 100644 index 0000000000..fc172e0349 --- /dev/null +++ b/main/halberd/halberd-sslwrap.patch @@ -0,0 +1,30 @@ +--- Halberd/clientlib.py.orig ++++ Halberd/clientlib.py +@@ -31,6 +31,7 @@ + + import time + import socket ++import ssl + import urlparse + + from itertools import takewhile +@@ -310,7 +311,7 @@ + + self._recv = None + self._sslsock = None +- self._timeout_exceptions.append(socket.sslerror) ++ self._timeout_exceptions.append(ssl.SSLError) + + # Path to an SSL key file and certificate. + self.keyfile = None +@@ -327,8 +328,8 @@ + """ + HTTPClient._connect(self, addr) + try: +- self._sslsock = socket.ssl(self._sock, self.keyfile, self.certfile) +- except socket.sslerror, msg: ++ self._sslsock = ssl.wrap_socket(self._sock, self.keyfile, self.certfile) ++ except ssl.SSLError, msg: + raise HTTPSError, msg + + self._recv = self._sslsock.read -- cgit v1.2.3