diff --git a/dev_src/_fs_utils.py b/dev_src/_fs_utils.py index 93fc739..e12b3c5 100644 --- a/dev_src/_fs_utils.py +++ b/dev_src/_fs_utils.py @@ -568,7 +568,7 @@ def kill(self): self.active = False self.done = True - for f in tuple(self.serial_io): + for f in tuple(self.serial_io.queue): name = f[0].name if not f[0].closed: f[0].close() diff --git a/dev_src/local_server_pyrobox.py b/dev_src/local_server_pyrobox.py index ab68d76..2efa6e8 100644 --- a/dev_src/local_server_pyrobox.py +++ b/dev_src/local_server_pyrobox.py @@ -1222,7 +1222,7 @@ def remove_from_temp(temp_fn): if upload_handler.error and not upload_handler.active: remove_from_temp(temp_fn) - return self.send_error(upload_handler.error, HTTPStatus.INTERNAL_SERVER_ERROR, cookie=cookie) + return self.send_error(HTTPStatus.INTERNAL_SERVER_ERROR, upload_handler.error, cookie=cookie) diff --git a/dev_src/pyroboxCore.py b/dev_src/pyroboxCore.py index eac558d..9e3e967 100644 --- a/dev_src/pyroboxCore.py +++ b/dev_src/pyroboxCore.py @@ -30,7 +30,7 @@ import atexit import os -__version__ = "0.9.4" +__version__ = "0.9.5" enc = "utf-8" __all__ = [ "HTTPServer", "ThreadingHTTPServer", "BaseHTTPRequestHandler", @@ -1684,7 +1684,7 @@ def get(self, show=F, strip=F, Timeout=10, chunk_size=0): if chunk_size <= 0: chunk_size = self.remainbytes - waited = 0 + # waited = 0 for _ in range(Timeout*2): if self.is_multipart(): line = req.rfile.readline() @@ -1693,8 +1693,8 @@ def get(self, show=F, strip=F, Timeout=10, chunk_size=0): if line: break time.sleep(.5) - waited +=.5 - print(f"Waited for {waited}s") + # waited +=.5 + # print(f"Waited for {waited}s") else: raise ConnectionAbortedError