python3Packages.supervisor: fix build w/glibc-2.31

https://hydra.nixos.org/build/122877074
This commit is contained in:
Maximilian Bosch 2020-06-27 13:39:00 +02:00
parent 872f65db46
commit 22b69ed143
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E
2 changed files with 20 additions and 0 deletions

View file

@ -14,6 +14,13 @@ buildPythonPackage rec {
sha256 = "64082ebedf6d36ff409ab2878f1aad5c9035f916c5f15a9a1ec7dffc6dfbbed8";
};
patches = [
# SOMAXCONN limit of glibc-2.31 has been increased from 128 to 4096:
# * https://sourceware.org/git/?p=glibc.git;a=commit;h=96958e2700f5b4f4d1183a0606b2b9848a53ea44
# * https://github.com/Supervisor/supervisor/issues/1346
./glibc-2.31.patch
];
# wants to write to /tmp/foo which is likely already owned by another
# nixbld user on hydra
doCheck = !stdenv.isDarwin;

View file

@ -0,0 +1,13 @@
diff --git a/supervisor/tests/base.py b/supervisor/tests/base.py
index 643e609..8aa45e7 100644
--- a/supervisor/tests/base.py
+++ b/supervisor/tests/base.py
@@ -358,7 +358,7 @@ class DummySocketConfig:
return not self.__eq__(other)
def get_backlog(self):
- return 128
+ return 4096
def create_and_bind(self):
return DummySocket(self.fd)