Closed syncpark closed 1 month ago
Connection
is inserted into PcapSources
(Arc<RwLock<HashMap<String, Connection>>>
) using the same key(source) as before.Connection
of the "Feature Sensor" will be removed from PcapSources
due to the previous connection termination occurring later.PcapSources
and it can't find it, even though it's actually connected.Connection
of type PcapSources
to Vec<Connection>
.Vec<Connection>
.Connection
from the last index in Vec<Connection>
when a pcap extraction request is received.Connection
from Vec<Connection>
when a disconnect is detected.
src/publish.rs 코드에서 process_pcap_request 함수에 다음과 같은 디버깅 코드를 추가해서 확인한 내용입니다. https://github.com/aicers/giganto/blob/bb1fbf33251e23983bd9f4150c66836ec0897d3f/src/publish.rs#L309-L315
Piglet이 죽었다가 다시 연결했을 경우 다음처럼
pcap_sources
, sensor 목록이 비어있습니다. 이 때문에 sensor에게 pcap extraction request를 전송하지 못하는 문제가 있습니다.