mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-06 13:01:21 +02:00
added trycatch for ipv4
This commit is contained in:
+5
-2
@@ -3116,8 +3116,11 @@ def RunServerMultiThreaded(addr, port, server_handler):
|
||||
ipv6_sock = context.wrap_socket(ipv6_sock, server_side=True)
|
||||
|
||||
numThreads = 24
|
||||
ipv4_sock.bind((addr, port))
|
||||
ipv4_sock.listen(numThreads)
|
||||
try:
|
||||
ipv4_sock.bind((addr, port))
|
||||
ipv4_sock.listen(numThreads)
|
||||
except Exception:
|
||||
print("IPv4 Socket Failed to Bind.")
|
||||
|
||||
if ipv6_sock:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user