* fix hanging http cancelation test. On wasm, the loopback could never get to read the headers
* feedback
{
await server.AcceptConnectionAsync(async connection =>
{
- cts.Cancel();
try
{
- await connection.ReadRequestHeaderAndSendResponseAsync();
+ await connection.ReadRequestHeaderAsync();
}
catch { }
+ cts.Cancel();
});
});
}
{
await server.AcceptConnectionAsync(async connection =>
{
- cts.Cancel();
try
{
- await connection.ReadRequestHeaderAndSendResponseAsync();
+ await connection.ReadRequestHeaderAsync();
}
catch { }
+ cts.Cancel();
});
});
}
{
await server.AcceptConnectionAsync(async connection =>
{
- cts.Cancel();
try
{
- await connection.ReadRequestHeaderAndSendResponseAsync();
+ await connection.ReadRequestHeaderAsync();
}
catch { }
+ cts.Cancel();
});
});
}