Commit 9e92724
committed
Fix race condition in WiFiServer
It is possible under heavy load with multithreading that a connection gets a
tcp_abort just before tcp_accept will be called. When we abort, we clear the
this pointer, and so when we try and recover our object we crash.
Check for aborted connections (and ignore) on WiFiServer, like we do in
WiFiClient1 parent ef0ce09 commit 9e92724
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | 80 | | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
219 | 223 | | |
220 | 224 | | |
221 | 225 | | |
222 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
223 | 229 | | |
0 commit comments