Every 50 seconds, the socket connection is closed, and its recovery is dependent on packet capturing. If the socket is closed, the sniffer won't know this until it tries to send captured data (in the try-catch block). After, the sniffer will create a new socket connection.
Expected Behavior
Keeping the connection open, reconnect if need, transparently without opening another socket.
Steps To Reproduce
Start the Redis server
Start the Web server
Start the React server
Start the sniffer
Wait for socket to disconnect
🔁 Repeat 4 & 5
Anything else?
A Short-lived Connection should be replaced with a Long-lived Connection in the sniffer.py. It's more expensive to re-open the connection frequently than keeping the connection open.
Is there an existing issue for this?
System information
2023.3
Actual Behavior
Every 50 seconds, the socket connection is closed, and its recovery is dependent on packet capturing. If the socket is closed, the sniffer won't know this until it tries to send captured data (in the try-catch block). After, the sniffer will create a new socket connection.
Expected Behavior
Keeping the connection open, reconnect if need, transparently without opening another socket.
Steps To Reproduce
Redis
serverReact
serverAnything else?
A Short-lived Connection should be replaced with a Long-lived Connection in the
sniffer.py
. It's more expensive to re-open the connection frequently than keeping the connection open.