mirror of
https://github.com/9001/copyparty.git
synced 2026-10-06 09:24:35 +01:00
clean socket shutdown (fix multiprocessing)
This commit is contained in:
@@ -3,6 +3,7 @@ from __future__ import print_function, unicode_literals
|
||||
|
||||
import os
|
||||
import time
|
||||
import socket
|
||||
import threading
|
||||
|
||||
from .__init__ import E
|
||||
@@ -68,6 +69,7 @@ class HttpSrv(object):
|
||||
|
||||
finally:
|
||||
self.log(str(addr), "-" * 7 + "C-done")
|
||||
sck.shutdown(socket.SHUT_RDWR)
|
||||
sck.close()
|
||||
with self.mutex:
|
||||
del self.clients[cli]
|
||||
|
||||
Reference in New Issue
Block a user