Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore sndrcv behaviour from before 53afe84 #4538

Merged
merged 11 commits into from
Sep 24, 2024

Conversation

polybassa
Copy link
Contributor

This PR rolls back the internal behaviour of sndrcv from before 53afe84

Two major changes happend in 53afe84

  • inter is only forwarded to time.sleep if it is not 0. However, calling time.sleep(0) gives the python threading system the possibility to do a context switch.
  • before 53afe84 sr was always executed in threaded mode.

@polybassa
Copy link
Contributor Author

Aims to fix #4531

scapy/sendrecv.py Outdated Show resolved Hide resolved
@gpotter2
Copy link
Member

gpotter2 commented Sep 22, 2024

Thanks a lot for figuring this out, this is great work !

@gpotter2 gpotter2 added the bug label Sep 22, 2024
@polybassa
Copy link
Contributor Author

polybassa commented Sep 22, 2024 via email

@gpotter2 gpotter2 force-pushed the issue_4531 branch 3 times, most recently from f4e06ce to 9e5d6e6 Compare September 22, 2024 20:52
@gpotter2
Copy link
Member

gpotter2 commented Sep 22, 2024

Seems to really be failing on the UDS_DualDoIPSslSocket6 test :/ If you don't mind I'll let you debug this one.
It seems there are other bugs though, a weird one on MacOS. I'll take a look

@polybassa
Copy link
Contributor Author

Seems to really be failing on the UDS_DualDoIPSslSocket6 test :/ If you don't mind I'll let you debug this one. It seems there are other bugs though, a weird one on MacOS. I'll take a look

Try to get it debug as soon as possible

@polybassa
Copy link
Contributor Author

Could I get #4533 merged before I start debugging?

@gpotter2
Copy link
Member

Sure thing !

@polybassa
Copy link
Contributor Author

@gpotter2 Ready from my side

Copy link

codecov bot commented Sep 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.58%. Comparing base (19eeafe) to head (500efef).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4538      +/-   ##
==========================================
- Coverage   81.59%   81.58%   -0.01%     
==========================================
  Files         356      356              
  Lines       85272    85271       -1     
==========================================
- Hits        69574    69571       -3     
- Misses      15698    15700       +2     
Files with missing lines Coverage Δ
scapy/sendrecv.py 86.75% <100.00%> (+0.39%) ⬆️

... and 6 files with indirect coverage changes

@gpotter2
Copy link
Member

Seems stable enough.

Thanks a lot !

@gpotter2 gpotter2 merged commit da9a952 into secdev:master Sep 24, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants