[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: check for port with SO_REUSEADDR
From: |
gnunet |
Subject: |
[libeufin] branch master updated: check for port with SO_REUSEADDR |
Date: |
Sat, 20 Jun 2020 08:39:50 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new b50d189 check for port with SO_REUSEADDR
b50d189 is described below
commit b50d1893a9622583361b5ea843f105fe7fc058e5
Author: Florian Dold <florian.dold@gmail.com>
AuthorDate: Sat Jun 20 12:09:28 2020 +0530
check for port with SO_REUSEADDR
---
integration-tests/util.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/integration-tests/util.py b/integration-tests/util.py
index 0be4183..09d08ad 100644
--- a/integration-tests/util.py
+++ b/integration-tests/util.py
@@ -6,15 +6,18 @@ from requests import post, get
from time import sleep
import atexit
from pathlib import Path
+import sys
def checkPort(port):
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
+ s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
try:
s.bind(("0.0.0.0", port))
s.close()
except:
print(f"Port {port} is not available")
+ print(sys.exc_info()[0])
exit(77)
def kill(name, s):
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: check for port with SO_REUSEADDR,
gnunet <=