fix: svn, fixed error handling for timeouts
This commit is contained in:
parent
60a989d44b
commit
d7743b35eb
1 changed files with 4 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue