Commit 661ca2d
committed
issue: 4398221 Fix connection closure on SYN_RCVD
When closing a connection in SYN_RCVD state, we should transition
directly to CLOSED without sending FIN or RST packets, as specified
in the RFC. This patch properly handles this case by immediately
changing the state to CLOSED instead of going through the normal
shutdown procedure.
This prevents unnecessary control packets when a connection receives
a SYN and is immediately closed without exchanging data.
Signed-off-by: Tomer Cabouly <[email protected]>1 parent 0d8f272 commit 661ca2d
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
262 | | - | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
263 | 270 | | |
264 | 271 | | |
265 | 272 | | |
| |||
0 commit comments