From 7c20ce632e6f50c8c64708fb9b0d335feba095d6 Mon Sep 17 00:00:00 2001
From: Helmut Grohne <helmut@subdivi.de>
Date: Sun, 18 Jun 2023 12:25:19 +0200
Subject: add testcase for scgi.asynchronous and fix reusesocket

---
 wsgitools/scgi/asynchronous.py | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'wsgitools/scgi')

diff --git a/wsgitools/scgi/asynchronous.py b/wsgitools/scgi/asynchronous.py
index 5354ced..0b014bf 100644
--- a/wsgitools/scgi/asynchronous.py
+++ b/wsgitools/scgi/asynchronous.py
@@ -255,6 +255,8 @@ class SCGIServer(asyncore.dispatcher):
             self.set_reuse_addr()
             self.bind((interface, port))
             self.listen(5)
+        else:
+            self.accepting = True
 
     def handle_accept(self):
         """asyncore interface"""
-- 
cgit v1.2.3