Commit ff15e6e
committed
Socket.SendFile throws InvalidOperationException when Blocking=false
The behavior of SendFile on non-blocking sockets is undefined (Windows blocks anyway, Linux may send partial data), so we now throw InvalidOperationException early.1 parent ccd875b commit ff15e6e
2 files changed
Lines changed: 20 additions & 0 deletions
File tree
- src/libraries/System.Net.Sockets
- src/System/Net/Sockets
- tests/FunctionalTests
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1325 | 1325 | | |
1326 | 1326 | | |
1327 | 1327 | | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
1328 | 1335 | | |
1329 | 1336 | | |
1330 | 1337 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
40 | 53 | | |
41 | 54 | | |
42 | 55 | | |
| |||
0 commit comments