-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Refactoring of ReceiveThread in ISOTPSoftSocket #1756
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
Conversation
scapy/contrib/isotp.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think you could remove the timeout, then the whole while loop, to simply use sniff ?
The stop_filter will take care of exiting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I understood the stop_filter, an exit can only happen, if a message is received.
If this is the case, I can not close the socket, if no further message is received. Sending a "fake message" just to trigger the execution of stop_filter
inside close
won't work, since I can not inject a message into the CAN socket.
Do you see a possibility to trigger the execution of stop_filter without a receive of a message?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct... I had a prototype #1523 of a such implementation, but that wasnt clean enough (now it's outdated).
I'll come back to you if i get any additional options available
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I would be happy, if I could avoid that timeout.
Codecov Report
@@ Coverage Diff @@
## master #1756 +/- ##
==========================================
+ Coverage 85.51% 85.53% +0.01%
==========================================
Files 181 181
Lines 42201 42195 -6
==========================================
+ Hits 36089 36091 +2
+ Misses 6112 6104 -8
|
789bf55
to
19ab270
Compare
This should remove packet losses in ISOTPSoftSocket
19ab270
to
d9ebe12
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gpotter2 your call!
It's still ugly, but better than what's in place ATM |
I totally agree. |
This should reduce packet losses in ISOTPSoftSocket