Commit 072e3be
committed
fix: issues with packet broadcast error reporting
commit 5b9c420 introduced some undesirable behaviour with packet send
functions returning error when they shouldn't. We now only return an
error if the packet fails to be added to the send queue or cannot
be wrapped/encrypted. We no longer error if we fail to send the packet
over the wire, because toxcore will keep trying to re-send the packet
until the connection times out.
Additionally, we now make sure that our packet broadcast functions
aren't returning an error when failing to send packets to peers
that we have not successfully handshaked with yet, since this is
expected behaviour.1 parent 6b6718e commit 072e3be
4 files changed
Lines changed: 37 additions & 20 deletions
File tree
- other/bootstrap_daemon/docker
- toxcore
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2264 | 2264 | | |
2265 | 2265 | | |
2266 | 2266 | | |
2267 | | - | |
| 2267 | + | |
| 2268 | + | |
2268 | 2269 | | |
2269 | 2270 | | |
2270 | 2271 | | |
2271 | 2272 | | |
2272 | 2273 | | |
| 2274 | + | |
2273 | 2275 | | |
2274 | 2276 | | |
2275 | 2277 | | |
| |||
2280 | 2282 | | |
2281 | 2283 | | |
2282 | 2284 | | |
| 2285 | + | |
| 2286 | + | |
2283 | 2287 | | |
2284 | 2288 | | |
2285 | 2289 | | |
2286 | 2290 | | |
2287 | 2291 | | |
2288 | | - | |
| 2292 | + | |
2289 | 2293 | | |
2290 | 2294 | | |
2291 | 2295 | | |
2292 | 2296 | | |
2293 | | - | |
| 2297 | + | |
| 2298 | + | |
2294 | 2299 | | |
2295 | 2300 | | |
2296 | 2301 | | |
2297 | 2302 | | |
2298 | 2303 | | |
| 2304 | + | |
2299 | 2305 | | |
2300 | 2306 | | |
2301 | 2307 | | |
| |||
2306 | 2312 | | |
2307 | 2313 | | |
2308 | 2314 | | |
| 2315 | + | |
| 2316 | + | |
2309 | 2317 | | |
2310 | 2318 | | |
2311 | 2319 | | |
2312 | 2320 | | |
2313 | 2321 | | |
2314 | | - | |
| 2322 | + | |
2315 | 2323 | | |
2316 | 2324 | | |
2317 | 2325 | | |
| |||
5318 | 5326 | | |
5319 | 5327 | | |
5320 | 5328 | | |
5321 | | - | |
| 5329 | + | |
5322 | 5330 | | |
5323 | 5331 | | |
5324 | 5332 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
176 | 183 | | |
177 | 184 | | |
178 | 185 | | |
| |||
616 | 623 | | |
617 | 624 | | |
618 | 625 | | |
619 | | - | |
| 626 | + | |
620 | 627 | | |
621 | 628 | | |
622 | 629 | | |
623 | 630 | | |
624 | 631 | | |
625 | 632 | | |
626 | 633 | | |
627 | | - | |
| 634 | + | |
628 | 635 | | |
629 | 636 | | |
630 | 637 | | |
| |||
634 | 641 | | |
635 | 642 | | |
636 | 643 | | |
637 | | - | |
| 644 | + | |
638 | 645 | | |
639 | 646 | | |
640 | 647 | | |
641 | 648 | | |
642 | 649 | | |
643 | | - | |
| 650 | + | |
644 | 651 | | |
645 | 652 | | |
646 | 653 | | |
647 | 654 | | |
648 | | - | |
| 655 | + | |
649 | 656 | | |
650 | 657 | | |
651 | 658 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
176 | 178 | | |
177 | 179 | | |
178 | | - | |
179 | | - | |
| 180 | + | |
| 181 | + | |
180 | 182 | | |
181 | 183 | | |
182 | 184 | | |
| |||
0 commit comments