This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Commit 00fcaf8
authored
Delete faulty assert in SslStreamInternal (#29131)
We're hitting an assert when a ReadAsync call is made on SslStream after the underlying stream encounters EOF. When calling FillBufferAsync, we've already allocated the read buffer, and we may not have any data in the buffer; if we then hit EOF, we've still not got any data in the buffer and we return. Then when ReadAsync is called again, the assert trips over the buffer being allocated and also being empty.
This just deletes the assert. We could also return the buffer when we hit EOF, but that'll be done by Dispose, anyway.1 parent 3f97e48 commit 00fcaf8
File tree
1 file changed
+0
-1
lines changed- src/System.Net.Security/src/System/Net/Security
1 file changed
+0
-1
lines changedLines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
186 | 185 | | |
187 | 186 | | |
188 | 187 | | |
| |||
0 commit comments