THRIFT-5564: add GitHub action for python 2.x and 3.x (#2787)
* update .github workflow to consolidate config
* add lib python
* Update build.yml
update
* rust => rs
* Update build.yml
update
* update
install openssl
remove 3.6
setup daemon
try 3.6
fix lib path
add backports of py
Update build.yml
use sudo
add install-exec-hook
* add ssl test skip
diff --git a/lib/py/src/server/TServer.py b/lib/py/src/server/TServer.py
index df2a7bb..8b2f938 100644
--- a/lib/py/src/server/TServer.py
+++ b/lib/py/src/server/TServer.py
@@ -125,7 +125,7 @@
if not client:
continue
t = threading.Thread(target=self.handle, args=(client,))
- t.setDaemon(self.daemon)
+ t.daemon = self.daemon
t.start()
except KeyboardInterrupt:
raise
@@ -213,7 +213,7 @@
for i in range(self.threads):
try:
t = threading.Thread(target=self.serveThread)
- t.setDaemon(self.daemon)
+ t.daemon = self.daemon
t.start()
except Exception as x:
logger.exception(x)