-
Notifications
You must be signed in to change notification settings - Fork 494
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
Fixing issue #215 #449
base: master
Are you sure you want to change the base?
Fixing issue #215 #449
Conversation
src/ec_decode.c
Outdated
{ | ||
/* calculate the stats */ | ||
stats_half_end(&GBL_STATS->bh, pkthdr->caplen); | ||
count = 0; |
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.
Wouldn't this cause stats_half_start() and stats_half_end() to be called without processing any additional packets?
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.
yes, so how to solve this? Adding packets in a queue?
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.
What do you think about calling stats_start when count is 0 and end when it has reached the packet limit?
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.
done, I hope
but this solution needs indeed LOT of testing
I don't think travis actually failed, a build stalled. |
In the last few days travis has needed a lot of rebuilds, and is using two concurrent builds instead of 5... I think there is some overread in the system! Anyway, I restarted the build! |
Rebased onto current master and renamed commit. |
Rebased over latest master and resolved conflicts + two errors. |
Comparism test done:
I also promised myself more out of it. However, since it's improving in both cases (IPv4 & IPv6) against master, I vote for merge in any case. |
Sorry I'fuzzed up. |
Worse than before applying this PR? |
Well I think this PR may have an effect on performance. |
I don't know, does this code makes sense?
I would like to test it, but I don't know how to do it properly