Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public async Task Server_with_three_listeners_should_respond_to_first_h11_reques
}
finally
{
Servus.Senf.Tracing.Disable();
cert.Dispose();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,15 @@ private void CloseAllPorts()
Cancel(_inResponse);
}

if (_outboundQueue.Count > 0)
{
// Outbound data is still queued (e.g. response encoded but not yet pushed
// because the network outlet had no demand). Drain via the flush path so
// the data reaches the transport before the connection closes.
CompleteAfterFlushingOutbound();
return;
}

if (!IsClosed(_outNetwork))
{
Complete(_outNetwork);
Expand Down
Loading