You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR: tcpreplay ...: after waiting for a few seconds, cmd has been created correctly without any exception, it is waiting for stdout and stderr at line 594. Then the Ctrl+C is pressed, and KeyboardInterrupt happens, caught by ContextManagerSubprocess at line 584, it raises the exceptions
ResourceWarning ...: the pipelines of stdout and stderr are not read and closed, because the exception is raised when communicating, then codes after line 594 will not be executed
Expected result
^CINFO: Interrupted by user
WARNING: User interrupt...
Related resources
No response
The text was updated successfully, but these errors were encountered:
Brief description
Sub process of
tcpreplay
invoked bysendpfast
cannot be stopped when pressingCtrl+C
More detailed,
cmd
created insendrecv.py
is not terminated manuallyscapy/scapy/sendrecv.py
Lines 584 to 600 in 20a3468
Scapy version
2.6.1
Python version
3.13
Operating system
Linux 6.13.6-arch1-1
Additional environment information
tcpreplay: 4.5.1-1
How to reproduce
In interactive environment
wait for a few seconds and press
Ctrl+C
Actual result
Here are explanations of the two bugs above (before explaining, I will pin relative codes here):
scapy/scapy/sendrecv.py
Lines 584 to 600 in 20a3468
ERROR: tcpreplay ...
: after waiting for a few seconds,cmd
has been created correctly without any exception, it is waiting for stdout and stderr at line 594. Then theCtrl+C
is pressed, andKeyboardInterrupt
happens, caught byContextManagerSubprocess
at line 584, it raises the exceptionsResourceWarning ...
: the pipelines of stdout and stderr are not read and closed, because the exception is raised when communicating, then codes after line 594 will not be executedExpected result
Related resources
No response
The text was updated successfully, but these errors were encountered: