Repository navigation
Commit 138a5a5
Harden RequestClientCertificate staging and shutdown timeout in tests
Two test robustness fixes:
- ServerSession_RequestClientCertificate_ReadWriteDuringSecondHandshake_Throws
staged the post-handshake CertificateRequest with a single RequestClientCertificate
call and asserted Complete. The API contract allows DestinationTooSmall when the
flight does not fit the destination, so drain in a do/while (matching
DriveClientCertNegotiationAsync) until the status is terminal before asserting.
- SocketBoundServerSession_Shutdown_DeliversCloseNotifyToSslStreamClient computed its
drain-loop deadline from DateTime.UtcNow, which is not monotonic and can drift with
clock adjustments. Use Environment.TickCount64 instead.
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 89084543-7d70-4562-8776-d4ca1baa3c7c1 parent c03a62f commit 138a5a5
1 file changed
Lines changed: 17 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2224 | 2224 | | |
2225 | 2225 | | |
2226 | 2226 | | |
2227 | | - | |
| 2227 | + | |
| 2228 | + | |
| 2229 | + | |
2228 | 2230 | | |
2229 | | - | |
2230 | | - | |
2231 | | - | |
2232 | | - | |
| 2231 | + | |
| 2232 | + | |
2233 | 2233 | | |
2234 | | - | |
2235 | | - | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
| 2237 | + | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
2236 | 2241 | | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
2237 | 2245 | | |
2238 | 2246 | | |
2239 | 2247 | | |
| |||
2689 | 2697 | | |
2690 | 2698 | | |
2691 | 2699 | | |
2692 | | - | |
| 2700 | + | |
2693 | 2701 | | |
2694 | 2702 | | |
2695 | 2703 | | |
2696 | 2704 | | |
2697 | 2705 | | |
2698 | | - | |
| 2706 | + | |
2699 | 2707 | | |
2700 | 2708 | | |
2701 | 2709 | | |
| |||
0 commit comments