Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions tests/send_extra.cc
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,17 @@ int main()
test.execute( ExpectReset { true } );
}

// • Hunter Zhang: make_empty_message() should not return RST is true when reader().has_error() is false;
{
TCPConfig cfg;
const Wrap32 isn( rd() );
cfg.isn = isn;
TCPSenderTestHarness test { "Stream error -> RST flag (when reader().has_error() == false)", cfg };
test.execute( Push {} );
test.execute( ExpectMessage {}.with_no_flags().with_syn( true ) );
test.execute( ExpectReset { false } );
}

// Sender must set RST iff stream has suffered an error
{
TCPConfig cfg;
Expand Down