Commit 6614fe6
committed
net: report BoundSocket connect errors asynchronously
Keep the synchronous connect(2) issuance for adopted BoundSockets (so the
concrete source address is observable via localAddress once connect()
returns), but deliver connection failures through the normal deferred
'error' event on all platforms instead of throwing synchronously. This
gives a single, consistent error channel across POSIX and Windows, where
connect(2) is asynchronous (ConnectEx).1 parent 3bc518c commit 6614fe6
3 files changed
Lines changed: 15 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1658 | 1658 | | |
1659 | 1659 | | |
1660 | 1660 | | |
1661 | | - | |
1662 | | - | |
| 1661 | + | |
| 1662 | + | |
| 1663 | + | |
1663 | 1664 | | |
1664 | 1665 | | |
1665 | 1666 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1249 | 1249 | | |
1250 | 1250 | | |
1251 | 1251 | | |
1252 | | - | |
| 1252 | + | |
1253 | 1253 | | |
1254 | 1254 | | |
1255 | 1255 | | |
| |||
1313 | 1313 | | |
1314 | 1314 | | |
1315 | 1315 | | |
1316 | | - | |
1317 | | - | |
1318 | | - | |
1319 | | - | |
1320 | | - | |
1321 | | - | |
1322 | 1316 | | |
1323 | 1317 | | |
1324 | 1318 | | |
| |||
1574 | 1568 | | |
1575 | 1569 | | |
1576 | 1570 | | |
1577 | | - | |
| 1571 | + | |
| 1572 | + | |
1578 | 1573 | | |
1579 | 1574 | | |
1580 | 1575 | | |
1581 | 1576 | | |
1582 | | - | |
| 1577 | + | |
1583 | 1578 | | |
1584 | 1579 | | |
1585 | 1580 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
210 | 209 | | |
211 | 210 | | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
217 | 215 | | |
218 | 216 | | |
219 | 217 | | |
| |||
0 commit comments