Commit 7452f01
committed
WIP:fix: send element stuck after TRANSMIT_COMPLETE_FAIL
TS fails to deliver a fragmented frame it called
send_data_callback_func(TRANSMIT_COMPLETE_FAIL), in this cause the TS
does not pop the falied session. Subsequent sends appended a fresh
frame to the tail while the stale 48-byte session stayed at the head,
causing all following commands to be re-driven through Transport Service
regardless of their actual size.
Fix a potential double-callback in fc_timer_expired: after invoking
completedFunc in the flag_replied_frag_req path, null the pointer so
the transmission_aborted guard cannot call it a second time if the
timer fires again.1 parent 8ec2d1c commit 7452f01
4 files changed
Lines changed: 26 additions & 7 deletions
File tree
- libs2
- protocol
- transport_service
- src/transport
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
447 | 448 | | |
448 | 449 | | |
449 | 450 | | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
450 | 454 | | |
451 | 455 | | |
452 | 456 | | |
| |||
567 | 571 | | |
568 | 572 | | |
569 | 573 | | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
570 | 577 | | |
571 | 578 | | |
572 | 579 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
| 515 | + | |
515 | 516 | | |
516 | 517 | | |
517 | 518 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
603 | 603 | | |
604 | 604 | | |
605 | 605 | | |
606 | | - | |
| 606 | + | |
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
292 | | - | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
293 | 295 | | |
294 | 296 | | |
295 | 297 | | |
296 | 298 | | |
297 | 299 | | |
298 | | - | |
| 300 | + | |
299 | 301 | | |
300 | 302 | | |
| 303 | + | |
| 304 | + | |
301 | 305 | | |
302 | 306 | | |
303 | 307 | | |
304 | 308 | | |
305 | 309 | | |
306 | 310 | | |
307 | 311 | | |
| 312 | + | |
308 | 313 | | |
309 | 314 | | |
| 315 | + | |
310 | 316 | | |
311 | 317 | | |
312 | 318 | | |
| |||
795 | 801 | | |
796 | 802 | | |
797 | 803 | | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
798 | 809 | | |
799 | 810 | | |
800 | 811 | | |
| |||
810 | 821 | | |
811 | 822 | | |
812 | 823 | | |
813 | | - | |
| 824 | + | |
814 | 825 | | |
815 | 826 | | |
816 | 827 | | |
| |||
843 | 854 | | |
844 | 855 | | |
845 | 856 | | |
846 | | - | |
| 857 | + | |
847 | 858 | | |
848 | 859 | | |
849 | 860 | | |
| |||
0 commit comments