167 references to DefaultTimeout
InMemory.FunctionalTests (36)
Http2\Http2ConnectionTests.cs (1)
5660
var result = await context.Request.BodyReader.ReadAsync().
DefaultTimeout
();
Http3\Http3ConnectionTests.cs (2)
188
Assert.Null(await Http3Api.MultiplexedConnectionContext.AcceptAsync().
DefaultTimeout
());
385
var maxFieldSetting = await Http3Api.ServerReceivedSettingsReader.ReadAsync().
DefaultTimeout
();
Http3\Http3StreamTests.cs (5)
2758
var outboundControlStream = await Http3Api.CreateControlStream().
DefaultTimeout
();
2765
var invalidStream = await Http3Api.CreateControlStream(typeId).
DefaultTimeout
();
2778
}, endStream: true).
DefaultTimeout
();
2799
var maxFieldSetting = await Http3Api.ServerReceivedSettingsReader.ReadAsync().
DefaultTimeout
();
2810
}, endStream: true).
DefaultTimeout
();
Http3\Http3TimeoutTests.cs (22)
25
var controlStream = await Http3Api.GetInboundControlStream().
DefaultTimeout
();
26
await controlStream.ExpectSettingsAsync().
DefaultTimeout
();
42
var controlStream = await Http3Api.GetInboundControlStream().
DefaultTimeout
();
43
await controlStream.ExpectSettingsAsync().
DefaultTimeout
();
66
var controlStream = await Http3Api.GetInboundControlStream().
DefaultTimeout
();
67
await controlStream.ExpectSettingsAsync().
DefaultTimeout
();
101
var controlStream = await Http3Api.GetInboundControlStream().
DefaultTimeout
();
102
await controlStream.ExpectSettingsAsync().
DefaultTimeout
();
133
var requestStream = await Http3Api.InitializeConnectionAndStreamsAsync(_noopApplication, null).
DefaultTimeout
();
135
var controlStream = await Http3Api.GetInboundControlStream().
DefaultTimeout
();
136
await controlStream.ExpectSettingsAsync().
DefaultTimeout
();
174
var requestStream = await Http3Api.InitializeConnectionAndStreamsAsync(_noopApplication, null).
DefaultTimeout
();
176
var controlStream = await Http3Api.GetInboundControlStream().
DefaultTimeout
();
177
await controlStream.ExpectSettingsAsync().
DefaultTimeout
();
223
var controlStream = await Http3Api.GetInboundControlStream().
DefaultTimeout
();
224
await controlStream.ExpectSettingsAsync().
DefaultTimeout
();
258
var controlStream = await Http3Api.GetInboundControlStream().
DefaultTimeout
();
259
await controlStream.ExpectSettingsAsync().
DefaultTimeout
();
287
var controlStream = await Http3Api.GetInboundControlStream().
DefaultTimeout
();
288
await controlStream.ExpectSettingsAsync().
DefaultTimeout
();
313
var controlStream = await Http3Api.GetInboundControlStream().
DefaultTimeout
();
314
await controlStream.ExpectSettingsAsync().
DefaultTimeout
();
Http3\WebTransport\WebTransportHandshakeTests.cs (3)
37
var session = await webTransportFeature.AcceptAsync(CancellationToken.None).
DefaultTimeout
(); // todo session is null here
62
await Http3Api.ServerReceivedSettingsReader.ReadAsync().
DefaultTimeout
();
128
await Http3Api.ServerReceivedSettingsReader.ReadAsync().
DefaultTimeout
();
Http3\WebTransport\WebTransportTestUtilities.cs (2)
35
var session = await webTransportFeature.AcceptAsync(CancellationToken.None).
DefaultTimeout
();
59
await inMemory.ServerReceivedSettingsReader.ReadAsync().
DefaultTimeout
();
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
113
while (await reader.WaitToReadAsync().
DefaultTimeout
())
Interop.FunctionalTests (10)
HttpClientHttp2InteropTests.cs (10)
273
var readResult = await reader.ReadAsync().
DefaultTimeout
();
277
readResult = await reader.ReadAsync().
DefaultTimeout
();
282
await context.Response.BodyWriter.WriteAsync(sequence.First).
DefaultTimeout
();
286
var finalResult = await reader.ReadAsync().
DefaultTimeout
();
330
var readResult = await reader.ReadAsync().
DefaultTimeout
();
334
readResult = await reader.ReadAsync().
DefaultTimeout
();
339
await context.Response.BodyWriter.WriteAsync(sequence.First).
DefaultTimeout
();
346
readResult = await reader.ReadAsync().
DefaultTimeout
();
350
readResult = await reader.ReadAsync().
DefaultTimeout
();
357
var finalResult = await reader.ReadAsync().
DefaultTimeout
();
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (4)
PolicyTests\QueuePolicyTests.cs (4)
29
Assert.True(await s.TryEnterAsync().
DefaultTimeout
());
35
Assert.True(await waitingTask.
DefaultTimeout
());
67
Assert.True(await s1.TryEnterAsync().
DefaultTimeout
());
68
Assert.True(await s2.TryEnterAsync().
DefaultTimeout
());
Microsoft.AspNetCore.Http.Connections.Tests (10)
HttpConnectionDispatcherTests.cs (10)
1297
await connection.Transport.Output.WriteAsync(new byte[] { 1 }).
DefaultTimeout
();
1336
await connection.Transport.Output.WriteAsync(new byte[] { 1 }).
DefaultTimeout
();
1380
await connection.Transport.Output.WriteAsync(new byte[] { 1 }).
DefaultTimeout
();
2223
await c.Transport.Output.WriteAsync(Encoding.UTF8.GetBytes("Message1")).
DefaultTimeout
();
2226
await c.Transport.Output.WriteAsync(Encoding.UTF8.GetBytes("Message2")).
DefaultTimeout
();
2982
Assert.Equal(3, await pollContext.Response.Body.ReadAsync(memory).
DefaultTimeout
());
2994
Assert.Equal(3, await pollContext.Response.Body.ReadAsync(memory).
DefaultTimeout
());
3039
Assert.Equal(3, await pollContext.Response.Body.ReadAsync(memory).
DefaultTimeout
());
3049
Assert.Equal(3, await pollContext.Response.Body.ReadAsync(memory).
DefaultTimeout
());
3171
Assert.Equal(1, await context.Response.Body.ReadAsync(memory).
DefaultTimeout
());
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
RequestTests.cs (1)
564
await httpContext.Request.Body.ReadAsync(new byte[10]).
DefaultTimeout
();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (10)
ConcurrentPipeWriterTests.cs (10)
48
await flushTask.
DefaultTimeout
();
64
await flushTask.
DefaultTimeout
();
171
await flushTask0.
DefaultTimeout
();
172
await flushTask1.
DefaultTimeout
();
217
await flushTask0.
DefaultTimeout
();
242
await flushTask1.
DefaultTimeout
();
300
await flushTask0.
DefaultTimeout
();
381
Assert.True((await flushTask0.
DefaultTimeout
()).IsCanceled);
382
Assert.True((await flushTask1.
DefaultTimeout
()).IsCanceled);
393
await flushTask2.
DefaultTimeout
();
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (55)
QuicConnectionContextTests.cs (24)
33
var acceptTask = connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
57
var acceptTask = connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
83
var acceptTask = connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
96
var serverStream = await acceptStreamTask.
DefaultTimeout
();
106
serverStream = await acceptStreamTask.
DefaultTimeout
();
109
var read = await serverStream.Transport.Input.ReadAtLeastAsync(TestData.Length).
DefaultTimeout
();
124
var acceptTask = connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
156
await using var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
198
var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
248
var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
256
await using var clientStream = await acceptTask.
DefaultTimeout
();
265
while ((readCount = await clientStream.ReadAsync(buffer).
DefaultTimeout
()) != -1)
279
readCount = await clientStream.ReadAsync(buffer).
DefaultTimeout
();
293
var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
319
await using var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
362
await using var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
407
await using var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
456
await using var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
514
await using var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
568
await using var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
610
var serverStream = await requestState.ServerConnection.AcceptAsync().
DefaultTimeout
();
612
var readResult = await serverStream.Transport.Input.ReadAtLeastAsync(TestData.Length).
DefaultTimeout
();
673
await using var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
752
await using var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
QuicConnectionListenerTests.cs (14)
38
Assert.Null(await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
());
49
var acceptTask = connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
73
var acceptTask1 = connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
85
var acceptTask2 = connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
124
var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
180
var acceptTask = connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
263
await using var clientConnection = await QuicConnection.ConnectAsync(options).
DefaultTimeout
();
264
await using var serverConnection = await acceptTask.
DefaultTimeout
();
321
await using var clientConnection = await QuicConnection.ConnectAsync(options).
DefaultTimeout
();
322
await using var serverConnection = await acceptTask.
DefaultTimeout
();
363
await using var serverConnection = await acceptTask.
DefaultTimeout
();
364
await using var clientConnection = await clientConnectionTask.
DefaultTimeout
();
448
var acceptTask = connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
452
await using var clientConnection = await QuicConnection.ConnectAsync(options).
DefaultTimeout
();
QuicStreamContextTests.cs (15)
40
await using var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
64
await using var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
112
await using var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
180
await using var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
237
await using var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
259
await using var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
303
await using var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
337
await using var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
376
await using var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
407
await using var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
423
var readCount = await clientStream.ReadAsync(new byte[1024]).
DefaultTimeout
();
448
await using var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
492
await using var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
542
await using var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
569
await using var serverConnection = await connectionListener.AcceptAndAddFeatureAsync().
DefaultTimeout
();
QuicTestHelpers.cs (2)
152
var serverStream = await serverConnection.AcceptAsync().
DefaultTimeout
();
155
var readResult = await serverStream.Transport.Input.ReadAtLeastAsync(TestData.Length).
DefaultTimeout
();
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (4)
HubConnectionTests.Tracing.cs (2)
83
clientActivity1 = await clientChannel.Reader.ReadAsync().
DefaultTimeout
();
105
clientActivity2 = await clientChannel.Reader.ReadAsync().
DefaultTimeout
();
HubProtocolVersionTests.cs (2)
134
var connectionContext = await proxyConnectionFactory.ConnectTask.
DefaultTimeout
();
144
await connectionContext.Transport.Output.FlushAsync().
DefaultTimeout
();
Microsoft.AspNetCore.SignalR.Client.Tests (10)
HttpConnectionTests.ConnectionLifecycle.cs (1)
315
await connection.Transport.Output.WriteAsync(new byte[] { 0x42 }).
DefaultTimeout
();
HttpConnectionTests.Transport.cs (3)
246
await connection.Transport.Output.WriteAsync(data).
DefaultTimeout
();
262
() => connection.Transport.Output.WriteAsync(new byte[0]).
DefaultTimeout
());
278
() => connection.Transport.Output.WriteAsync(new byte[0]).
DefaultTimeout
());
HubConnectionTests.ConnectionLifecycle.cs (1)
626
await innerConnection.Application.Output.WriteAsync(Encoding.UTF8.GetBytes(new[] { '{' })).
DefaultTimeout
();
HubConnectionTests.cs (4)
272
await Assert.ThrowsAsync<TaskCanceledException>(() => result.GetAsyncEnumerator().MoveNextAsync().
DefaultTimeout
());
301
await task.
DefaultTimeout
();
303
while (await e.MoveNextAsync().
DefaultTimeout
())
333
await task.
DefaultTimeout
();
HubConnectionTests.Reconnect.cs (1)
920
await currentTestConnection.Application.Output.WriteAsync(output.ToArray()).
DefaultTimeout
();
Microsoft.AspNetCore.SignalR.Tests (25)
EndToEndTests.cs (3)
193
await connection.Transport.Output.WriteAsync(message).
DefaultTimeout
();
279
await connection.Transport.Output.WriteAsync(bytes).
DefaultTimeout
();
336
await connection.Transport.Output.WriteAsync(bytes).
DefaultTimeout
();
HubConnectionHandlerTests.Activity.cs (17)
54
var connectActivity = await serverChannel.Reader.ReadAsync().
DefaultTimeout
();
63
var invocation1Activity = await serverChannel.Reader.ReadAsync().
DefaultTimeout
();
69
var invocation2Activity = await serverChannel.Reader.ReadAsync().
DefaultTimeout
();
75
var invocation3Activity = await serverChannel.Reader.ReadAsync().
DefaultTimeout
();
78
var userCodeActivity = await serverChannel.Reader.ReadAsync().
DefaultTimeout
();
87
var disconnectActivity = await serverChannel.Reader.ReadAsync().
DefaultTimeout
();
129
var connectActivity = await serverChannel.Reader.ReadAsync().
DefaultTimeout
();
145
var invocationActivity = await serverChannel.Reader.ReadAsync().
DefaultTimeout
();
159
var disconnectActivity = await serverChannel.Reader.ReadAsync().
DefaultTimeout
();
200
var connectActivity = await serverChannel.Reader.ReadAsync().
DefaultTimeout
();
205
var invocation1Activity = await serverChannel.Reader.ReadAsync().
DefaultTimeout
();
210
var invocation2Activity = await serverChannel.Reader.ReadAsync().
DefaultTimeout
();
218
var disconnectedActivity = await serverChannel.Reader.ReadAsync().
DefaultTimeout
();
259
var connectActivity = await serverChannel.Reader.ReadAsync().
DefaultTimeout
();
271
var invocationActivity = await serverChannel.Reader.ReadAsync().
DefaultTimeout
();
285
var disconnectActivity = await serverChannel.Reader.ReadAsync().
DefaultTimeout
();
330
var activity = await serverChannel.Reader.ReadAsync().
DefaultTimeout
();
HubConnectionHandlerTests.cs (2)
669
await client.Connection.Application.Output.WriteAsync(payload).
DefaultTimeout
();
3566
await client.Connection.Application.Output.WriteAsync(Encoding.UTF8.GetBytes(new[] { '{' })).
DefaultTimeout
();
Internal\MessageBufferTests.cs (3)
34
var res = await pipes.Application.Input.ReadAsync().
DefaultTimeout
();
73
res = await pipes.Application.Input.ReadAsync().
DefaultTimeout
();
311
res = await pipes.Application.Input.ReadAsync().
DefaultTimeout
();
Sockets.FunctionalTests (2)
src\Servers\Kestrel\test\FunctionalTests\UnixDomainSocketsTests.cs (2)
108
var bytesReceived = await socket.ReceiveAsync(buffer.AsMemory(read, buffer.Length - read), SocketFlags.None).
DefaultTimeout
();
176
var bytesReceived = await socket.ReceiveAsync(readBuffer.AsMemory(read), SocketFlags.None).
DefaultTimeout
();