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 @@ -432,7 +432,7 @@ public async Task SetListenerTimeoutWorksWithSmallTimeout()
listenerOptions.ListenEndPoint = new IPEndPoint(IPAddress.Loopback, 0);

(QuicConnection clientConnection, QuicConnection serverConnection) = await CreateConnectedQuicConnection(null, listenerOptions);
await Assert.ThrowsAsync<QuicOperationAbortedException>(async () => await serverConnection.AcceptStreamAsync().AsTask().WaitAsync(TimeSpan.FromSeconds(100)));
await Assert.ThrowsAsync<QuicConnectionAbortedException>(async () => await serverConnection.AcceptStreamAsync().AsTask().WaitAsync(TimeSpan.FromSeconds(100)));
serverConnection.Dispose();
clientConnection.Dispose();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ await RunClientServer(
using QuicStream clientStream = clientConnection.OpenBidirectionalStream();
await DoWrites(clientStream, writesBeforeClose);

// Wait for peer to receive data
// Wait for peer to receive data
await sync.WaitAsync();

await clientConnection.CloseAsync(ExpectedErrorCode);
Expand Down Expand Up @@ -262,7 +262,7 @@ await RunClientServer(
using QuicStream clientStream = clientConnection.OpenBidirectionalStream();
await DoWrites(clientStream, writesBeforeClose);

// Wait for peer to receive data
// Wait for peer to receive data
await sync.WaitAsync();

clientConnection.Dispose();
Expand All @@ -279,8 +279,8 @@ await RunClientServer(

// The client has done an abortive shutdown of the connection, which means we are not notified that the connection has closed.
// But the connection idle timeout should kick in and eventually we will get exceptions.
await Assert.ThrowsAsync<QuicOperationAbortedException>(async () => await serverStream.ReadAsync(new byte[1]));
await Assert.ThrowsAsync<QuicOperationAbortedException>(async () => await serverStream.WriteAsync(new byte[1]));
await Assert.ThrowsAsync<QuicConnectionAbortedException>(async () => await serverStream.ReadAsync(new byte[1]));
await Assert.ThrowsAsync<QuicConnectionAbortedException>(async () => await serverStream.WriteAsync(new byte[1]));
}, listenerOptions: listenerOptions);
}
}
Expand Down