Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
V
vidai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SexHackMe
vidai
Commits
d3cc1eed
Commit
d3cc1eed
authored
Oct 09, 2025
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update backend readiness check to use TCP port instead of Unix socket
parent
12720b46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
32 deletions
+14
-32
vidai.py
vidai.py
+14
-32
No files found.
vidai.py
View file @
d3cc1eed
...
...
@@ -379,22 +379,13 @@ Examples:
max_wait
=
15
for
i
in
range
(
max_wait
):
try
:
if
is_unix_sockets_supported
():
# Check Unix socket
sock
=
socket
.
socket
(
socket
.
AF_UNIX
,
socket
.
SOCK_STREAM
)
sock
.
settimeout
(
1
)
sock
.
connect
(
get_socket_path
(
'worker'
))
sock
.
close
()
print
(
"Backend Unix socket is ready!"
)
break
else
:
# Check TCP port
sock
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
sock
.
settimeout
(
1
)
sock
.
connect
((
args
.
backend_host
,
args
.
backend_worker_port
))
sock
.
close
()
print
(
"Backend TCP port is ready!"
)
break
# Check TCP port for worker
sock
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
sock
.
settimeout
(
1
)
sock
.
connect
((
args
.
backend_host
,
args
.
backend_worker_port
))
sock
.
close
()
print
(
"Backend TCP port is ready!"
)
break
except
(
FileNotFoundError
,
ConnectionRefusedError
,
OSError
):
if
i
<
max_wait
-
1
:
print
(
f
"Waiting for backend... ({i+1}/{max_wait})"
)
...
...
@@ -430,22 +421,13 @@ Examples:
max_wait
=
15
for
i
in
range
(
max_wait
):
try
:
if
is_unix_sockets_supported
():
# Check Unix socket
sock
=
socket
.
socket
(
socket
.
AF_UNIX
,
socket
.
SOCK_STREAM
)
sock
.
settimeout
(
1
)
sock
.
connect
(
get_socket_path
(
'worker'
))
sock
.
close
()
print
(
"Backend Unix socket is ready!"
)
break
else
:
# Check TCP port
sock
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
sock
.
settimeout
(
1
)
sock
.
connect
((
args
.
backend_host
,
args
.
backend_worker_port
))
sock
.
close
()
print
(
"Backend TCP port is ready!"
)
break
# Check TCP port for worker
sock
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
sock
.
settimeout
(
1
)
sock
.
connect
((
args
.
backend_host
,
args
.
backend_worker_port
))
sock
.
close
()
print
(
"Backend TCP port is ready!"
)
break
except
(
FileNotFoundError
,
ConnectionRefusedError
,
OSError
):
if
i
<
max_wait
-
1
:
print
(
f
"Waiting for backend... ({i+1}/{max_wait})"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment