fix: svn, fixed error handling for timeouts

This commit is contained in:
RhodeCode Admin 2025-01-17 10:05:43 +01:00
parent 60a989d44b
commit d7743b35eb

View file

@ -25,7 +25,7 @@ import tempfile
from subprocess import Popen, PIPE
import urllib.parse
from rhodecode.lib.str_utils import safe_str
from rhodecode.lib.str_utils import safe_str, safe_bytes
from .base import SshVcsServer
log = logging.getLogger(__name__)
@ -128,6 +128,9 @@ class SubversionTunnelWrapper(object):
if not bytes_:
return b""
if not isinstance(bytes_, bytes):
bytes_ = safe_bytes(bytes_)
return f"{len(bytes_)}:".encode() + bytes_ + b" "
def _read_first_client_response(self):