Repository navigation
Conversation
An application's send() may ask for an earlier retransmission deadline; the stack's task must be signalled for it (tcp_timer_want()). And under load from several tasks the timers run on, none lost and none twice. Read from the stack's counters (kern/netdiag.h). With tcp_timer_want() aborting and sending the request in the caller's task again, the first test fails.
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.
A regression test only, no change to the stack.
64d00bf2damade the stack's timer requests its own task's alone: until thentcp_timer_want(), called by an application'ssend(), could abort, collect and send the retransmission request in the application's task, and all the stack's timers could stop for good. Nothing tested it.cunit-net-timersreads the stack's counters (kern/netdiag.h), in place. A stack without them: the tests are skipped.send()asks for an earlier deadline from the application's task, and the owner must be signalled for it;Validation
tcp_timer_want()collects and sends the request in the caller's task; hosted, three runstimer_poll()takes the reply beforesplsoftclock(); hosted, three runsThe stack in these runs was a master of before #2448, which changes nothing in
kern/; the A3000's83004d5cc9, with thetransport.protof #2449. The mutants were not run on the A3000.Limit: the second test does not catch either mutant: the race itself is too narrow to be hit on purpose. It is the first that guards the fix; the second checks that the timers go on.
Not tested: real hardware.