~ubuntu-branches/ubuntu/trusty/python-eventlet/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/patches/reuseaddr.patch

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2011-06-08 15:13:04 UTC
  • mfrom: (4.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110608151304-ab35lybeozkz72ws
Tags: 0.9.16-1
* Team upload.
* New upstream release.
* Dropped reuseaddr.patch: Included upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Description: The logic for deciding whether to use SO_REUSEADDR was inverted
2
 
Origin: https://bitbucket.org/which_linden/eventlet/changeset/6e6a02e7ac7c
3
 
Bug: https://bitbucket.org/which_linden/eventlet/issue/86
4
 
 
5
 
Index: python-eventlet-0.9.15/eventlet/convenience.py
6
 
===================================================================
7
 
--- python-eventlet-0.9.15.orig/eventlet/convenience.py
8
 
+++ python-eventlet-0.9.15/eventlet/convenience.py
9
 
@@ -33,7 +33,7 @@
10
 
     :return: The listening green socket object.
11
 
     """
12
 
     sock = socket.socket(family, socket.SOCK_STREAM)
13
 
-    if sys.platform[:3]=="win":
14
 
+    if sys.platform[:3] != "win":
15
 
         sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
16
 
     sock.bind(addr)
17
 
     sock.listen(backlog)