Wave-Net / wavenet-backend

packet capture logic using scapy library
0 stars 0 forks source link

스니퍼 스레드 시작, 중단 관리 #48

Closed zhy2on closed 2 months ago

zhy2on commented 2 months ago

File "/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/threading.py", line 987, in start raise RuntimeError("threads can only be started once") RuntimeError: threads can only be started once

클라이언트 연결 끊었다가 다시 접속 했을 때 오류남. 스니퍼 스레드 시작, 중단 로직 제대로 점검 할 것

zhy2on commented 2 months ago
image

아하 스레드 인스턴스 만든 다음에 start -> stop -> start -> stop 이런식으로 계속 재사용 하려고 했었는데

한 번 start 하고 stop 하고 나면 다시 시작을 못 하는 거였다!