Repository navigation
Conversation
We don't support fragmentation yet, so disable it.
This helps determining dropped packets with e.g. Wireshark output. If misbehaving, lvl-ip log shows if it dropped the packet right after it received it.
This probably lead to the race condition, where the linger timeout fired AFTER the socket had already been freed.
This speeds up the test cycle a little bit, but more importantly we now use just a single lvl-ip instance. The aim here is to increase stress testing - if running multiple suites simultaneously fail at some point, there's a creeping bug in lvl-ip.
This helps pinpointing any errors, since debug mode is more verbose.
Otherwise, the socket might not be deleted from the list by certain routines?
It complained about using %hhu (unsigned char) for unsigned int.
We simply use socket->lock for the time being, as it makes locking easier (with the perf penalty though.)
This causes a race condition and I can't be bothered to fix it now.
This is a bit confusing, since tsan reports a lock-order-inversion here. The code still works OK. Might be related to this issue? google/sanitizers#814 It overall reduces racing errors by tsan, since we now wait-lock before releasing the socket lock. I could use the socket lock as the lock for pthread_cond_wait, but it only accepts mutexes, and I think there could be some perf improvements in using rwlocks.
There's a lock-order-inversion warning that might not be an actual problem: google/sanitizers#814
I saw this with Wireshark - at times, there was a "previously unseen segment" originating from me. This is immediately a smell, since only lost/reordered packets from the network should cause this.
This seems to make peers significantly more receptive to our traffic, since it should now match the MSS they request.
Only with one sack. Next is to bring 0-4 sack blocks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change set includes important robustness fixes:
Plus other minor fixes (see commit log).