mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-11 17:44:38 +00:00
added trycatch for ipv4
This commit is contained in:
parent
62cd9bb0b2
commit
50eae1ffeb
1 changed files with 5 additions and 2 deletions
|
@ -3116,8 +3116,11 @@ def RunServerMultiThreaded(addr, port, server_handler):
|
||||||
ipv6_sock = context.wrap_socket(ipv6_sock, server_side=True)
|
ipv6_sock = context.wrap_socket(ipv6_sock, server_side=True)
|
||||||
|
|
||||||
numThreads = 24
|
numThreads = 24
|
||||||
|
try:
|
||||||
ipv4_sock.bind((addr, port))
|
ipv4_sock.bind((addr, port))
|
||||||
ipv4_sock.listen(numThreads)
|
ipv4_sock.listen(numThreads)
|
||||||
|
except Exception:
|
||||||
|
print("IPv4 Socket Failed to Bind.")
|
||||||
|
|
||||||
if ipv6_sock:
|
if ipv6_sock:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue