Merge pull request #91 from kale4eat/dev-pyopenjtalk-worker
openjtalkプロセス間通信のタイムアウト延長
This commit is contained in:
@@ -9,8 +9,8 @@ from common.log import logger
|
|||||||
class WorkerClient:
|
class WorkerClient:
|
||||||
def __init__(self, port: int) -> None:
|
def __init__(self, port: int) -> None:
|
||||||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
# 5: timeout
|
# 60: timeout
|
||||||
sock.settimeout(5)
|
sock.settimeout(60)
|
||||||
sock.connect((socket.gethostname(), port))
|
sock.connect((socket.gethostname(), port))
|
||||||
self.sock = sock
|
self.sock = sock
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user