Repository navigation
Commit 17e9629
committed
Ignore ICMP port unreachable on the DTLS server socket on Windows
Windows fails to execute the next recvfrom() call on a UDP socket with WSAECONNRESET after a sent datagram is returned as an ICMP port unreachable, such as a close notification to a client that has already disconnected. The socket is the port of every peer, so accept() fails for the next client. Disabled with SIO_UDP_CONNRESET, since Linux never reports this on an unconnected socket.1 parent a98fee3 commit 17e9629
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
34 | 40 | | |
35 | 41 | | |
36 | 42 | | |
| |||
520 | 526 | | |
521 | 527 | | |
522 | 528 | | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
523 | 536 | | |
524 | 537 | | |
525 | 538 | | |
| |||
0 commit comments