Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[app] Forget exchange context when SubscribeResponse is received #11211

Merged
merged 1 commit into from
Nov 2, 2021

Conversation

Damian-Nordic
Copy link
Contributor

@Damian-Nordic Damian-Nordic commented Oct 29, 2021

Problem

SubscribeResponse is the last action in the Subscribe transaction and ExchangeContext::HandleMessage
automatically closes exchanges that have no pending requests nor responses.

ReadClient still kept the pointer to the exchange after receiving SubscribeResponse, so it would attempt to abort
already closed exchange if the subscription was cancelled after receiving the SubscribeResponse and before receving
a subsequent Report message.

Change overview

Let ReadClient forget the exchange context when SubscribeResponse is received.

Testing

Tested on hardware using Android CHIPTool and trying to unsubscribe from an attribute in random moments.
Also, added UT.

@github-actions
Copy link

github-actions bot commented Oct 29, 2021

PR #11211: Size comparison from 69423bc to f332c1f

Increases (19 builds for esp32, k32w, linux, nrfconnect, qpg, telink)
platform target config section 69423bc f332c1f change % change
esp32 all-clusters-app c3devkit (read only) 876522 876530 8 0.0
.flash.text 876522 876530 8 0.0
k32w lighting-app k32w061+se05x+release (read/write) 700984 701000 16 0.0
.text 614996 615012 16 0.0
linux all-clusters-app debug (read only) 1655017 1655033 16 0.0
.text 1385090 1385106 16 0.0
bridge-app debug+rpc (read only) 1283285 1283301 16 0.0
.text 1077333 1077349 16 0.0
chip-tool debug (read only) 4268221 4268237 16 0.0
.text 3790453 3790469 16 0.0
lighting-app debug+rpc (read only) 1542193 1542209 16 0.0
.text 1281010 1281026 16 0.0
ota-provider-app debug (read only) 1240097 1240113 16 0.0
.text 1033122 1033138 16 0.0
ota-requestor-app debug (read only) 1303273 1303289 16 0.0
.text 1078002 1078018 16 0.0
tv-app debug (read only) 1774873 1774889 16 0.0
.text 1478530 1478546 16 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 862847 862863 16 0.0
text 578072 578084 12 0.0
nrf52840dk_nrf52840+rpc (read/write) 823707 823723 16 0.0
text 551248 551256 8 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 787870 787886 16 0.0
text 507540 507552 12 0.0
lock-app nrf52840dk_nrf52840 text 559556 559568 12 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 764850 764866 16 0.0
text 489116 489128 12 0.0
pump-app nrf52840dk_nrf52840 (read/write) 844223 844239 16 0.0
text 562768 562776 8 0.0
pump-controller-app nrf52840dk_nrf52840 text 559400 559408 8 0.0
qpg lighting-app qpg6100+debug (read only) 490944 490952 8 0.0
.text 485624 485632 8 0.0
lock-app qpg6100+debug (read only) 467300 467308 8 0.0
.text 461980 461988 8 0.0
telink lighting-app tlsr9518adk80d (read/write) 664562 664570 8 0.0
text 458596 458602 6 0.0
Decreases (1 build for esp32)
platform target config section 69423bc f332c1f change % change
esp32 all-clusters-app m5stack (read only) 907855 907779 -76 -0.0
.flash.text 907855 907779 -76 -0.0
Full report (37 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 69423bc f332c1f change % change
efr32 lighting-app BRD4161A (read only) 737864 737864 0 0.0
(read/write) 115028 115028 0 0.0
.bss 113276 113276 0 0.0
.data 1752 1752 0 0.0
.text 737856 737856 0 0.0
BRD4161A+rpc (read only) 725304 725304 0 0.0
(read/write) 131636 131636 0 0.0
.bss 129780 129780 0 0.0
.data 1852 1852 0 0.0
.text 725296 725296 0 0.0
lock-app BRD4161A (read only) 717144 717144 0 0.0
(read/write) 112844 112844 0 0.0
.bss 111132 111132 0 0.0
.data 1712 1712 0 0.0
.text 717136 717136 0 0.0
window-app BRD4161A (read only) 718048 718048 0 0.0
(read/write) 113172 113172 0 0.0
.bss 111452 111452 0 0.0
.data 1716 1716 0 0.0
.text 718040 718040 0 0.0
esp32 all-clusters-app c3devkit (read only) 876522 876530 8 0.0
(read/write) 1308160 1308160 0 0.0
.dram0.bss 58848 58848 0 0.0
.dram0.data 16448 16448 0 0.0
.flash.rodata 199632 199632 0 0.0
.flash.text 876522 876530 8 0.0
.iram0.text 57554 57554 0 0.0
m5stack (read only) 907855 907779 -76 -0.0
(read/write) 427940 427940 0 0.0
.dram0.bss 61344 61344 0 0.0
.dram0.data 32084 32084 0 0.0
.flash.rodata 208348 208348 0 0.0
.flash.text 907855 907779 -76 -0.0
.iram0.text 125115 125115 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 700984 701000 16 0.0
.bss 78288 78288 0 0.0
.data 1900 1900 0 0.0
.text 614996 615012 16 0.0
lock-app k32w061+debug (read/write) 592940 592940 0 0.0
.bss 68772 68772 0 0.0
.data 1864 1864 0 0.0
.text 516504 516504 0 0.0
shell k32w061+debug (read/write) 425252 425252 0 0.0
.bss 63256 63256 0 0.0
.data 672 672 0 0.0
.text 359620 359620 0 0.0
linux all-clusters-app debug (read only) 1655017 1655033 16 0.0
(read/write) 118720 118720 0 0.0
.bss 50960 50960 0 0.0
.data 978 978 0 0.0
.data.rel.ro 61536 61536 0 0.0
.dynamic 592 592 0 0.0
.got 4088 4088 0 0.0
.init 27 27 0 0.0
.init_array 520 520 0 0.0
.rodata 137685 137685 0 0.0
.text 1385090 1385106 16 0.0
bridge-app debug+rpc (read only) 1283285 1283301 16 0.0
(read/write) 84776 84776 0 0.0
.bss 51440 51440 0 0.0
.data 976 976 0 0.0
.data.rel.ro 27368 27368 0 0.0
.dynamic 592 592 0 0.0
.got 3952 3952 0 0.0
.init 27 27 0 0.0
.init_array 400 400 0 0.0
.rodata 110660 110660 0 0.0
.text 1077333 1077349 16 0.0
chip-tool debug (read only) 4268221 4268237 16 0.0
(read/write) 122240 122240 0 0.0
.bss 17680 17680 0 0.0
.data 1584 1584 0 0.0
.data.rel.ro 97568 97568 0 0.0
.dynamic 592 592 0 0.0
.got 4368 4368 0 0.0
.init 27 27 0 0.0
.init_array 424 424 0 0.0
.rodata 214800 214800 0 0.0
.text 3790453 3790469 16 0.0
lighting-app debug+rpc (read only) 1542193 1542209 16 0.0
(read/write) 101648 101648 0 0.0
.bss 40824 40824 0 0.0
.data 1106 1106 0 0.0
.data.rel.ro 54448 54448 0 0.0
.dynamic 608 608 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 528 528 0 0.0
.rodata 128753 128753 0 0.0
.text 1281010 1281026 16 0.0
ota-provider-app debug (read only) 1240097 1240113 16 0.0
(read/write) 67488 67488 0 0.0
.bss 37024 37024 0 0.0
.data 752 752 0 0.0
.data.rel.ro 24616 24616 0 0.0
.dynamic 592 592 0 0.0
.got 4016 4016 0 0.0
.init 27 27 0 0.0
.init_array 440 440 0 0.0
.rodata 110824 110824 0 0.0
.text 1033122 1033138 16 0.0
ota-requestor-app debug (read only) 1303273 1303289 16 0.0
(read/write) 76744 76744 0 0.0
.bss 45280 45280 0 0.0
.data 816 816 0 0.0
.data.rel.ro 25528 25528 0 0.0
.dynamic 592 592 0 0.0
.got 3984 3984 0 0.0
.init 27 27 0 0.0
.init_array 512 512 0 0.0
.rodata 127456 127456 0 0.0
.text 1078002 1078018 16 0.0
shell debug (read only) 787153 787153 0 0.0
(read/write) 57760 57760 0 0.0
.bss 16168 16168 0 0.0
.data 242 242 0 0.0
.data.rel.ro 36848 36848 0 0.0
.dynamic 592 592 0 0.0
.got 3528 3528 0 0.0
.init 27 27 0 0.0
.init_array 336 336 0 0.0
.rodata 77519 77519 0 0.0
.text 608098 608098 0 0.0
tv-app debug (read only) 1774873 1774889 16 0.0
(read/write) 289240 289240 0 0.0
.bss 222864 222864 0 0.0
.data 2032 2032 0 0.0
.data.rel.ro 58704 58704 0 0.0
.dynamic 592 592 0 0.0
.got 4408 4408 0 0.0
.init 27 27 0 0.0
.init_array 608 608 0 0.0
.rodata 154104 154104 0 0.0
.text 1478530 1478546 16 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2291080 2291080 0 0.0
.bss 180220 180220 0 0.0
.data 5192 5192 0 0.0
.heap 851032 851032 0 0.0
.text 1253680 1253680 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2275352 2275352 0 0.0
.bss 172420 172420 0 0.0
.data 5568 5568 0 0.0
.heap 858456 858456 0 0.0
.text 1237952 1237952 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2253072 2253072 0 0.0
.bss 171324 171324 0 0.0
.data 5552 5552 0 0.0
.heap 859568 859568 0 0.0
.text 1215672 1215672 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139744 1139744 0 0.0
.bss 11752 11752 0 0.0
.data 4368 4368 0 0.0
.heap 1020328 1020328 0 0.0
.text 103128 103128 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2048976 2048976 0 0.0
.bss 156208 156208 0 0.0
.data 4968 4968 0 0.0
.heap 875272 875272 0 0.0
.text 1011576 1011576 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 862847 862863 16 0.0
bss 111732 111732 0 0.0
rodata 97432 97432 0 0.0
text 578072 578084 12 0.0
nrf52840dk_nrf52840+rpc (read/write) 823707 823723 16 0.0
bss 107972 107972 0 0.0
rodata 88212 88212 0 0.0
text 551248 551256 8 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 787870 787886 16 0.0
bss 113104 113104 0 0.0
rodata 92672 92672 0 0.0
text 507540 507552 12 0.0
lock-app nrf52840dk_nrf52840 (read/write) 839555 839555 0 0.0
bss 110768 110768 0 0.0
rodata 93788 93788 0 0.0
text 559556 559568 12 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 764850 764866 16 0.0
bss 112176 112176 0 0.0
rodata 89092 89092 0 0.0
text 489116 489128 12 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 497323 497323 0 0.0
bss 51824 51824 0 0.0
rodata 45776 45776 0 0.0
text 339436 339436 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 844223 844239 16 0.0
bss 110904 110904 0 0.0
rodata 95032 95032 0 0.0
text 562768 562776 8 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 839543 839543 0 0.0
bss 110800 110800 0 0.0
rodata 93808 93808 0 0.0
text 559400 559408 8 0.0
shell nrf52840dk_nrf52840 (read/write) 776435 776435 0 0.0
bss 109072 109072 0 0.0
rodata 72536 72536 0 0.0
text 520236 520236 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 691490 691490 0 0.0
bss 110056 110056 0 0.0
rodata 67180 67180 0 0.0
text 440848 440848 0 0.0
p6 lock-app default (read/write) 2169488 2169488 0 0.0
.bss 66768 66768 0 0.0
.data 2416 2416 0 0.0
.heap 964160 964160 0 0.0
.text 1127752 1127752 0 0.0
qpg lighting-app qpg6100+debug (read only) 490944 490952 8 0.0
(read/write) 114144 114144 0 0.0
.bss 50888 50888 0 0.0
.data 1000 1000 0 0.0
.text 485624 485632 8 0.0
lock-app qpg6100+debug (read only) 467300 467308 8 0.0
(read/write) 114140 114140 0 0.0
.bss 49840 49840 0 0.0
.data 956 956 0 0.0
.text 461980 461988 8 0.0
persistent-storage-app qpg6100+debug (read only) 155236 155236 0 0.0
(read/write) 114140 114140 0 0.0
.bss 27752 27752 0 0.0
.data 372 372 0 0.0
.text 149916 149916 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 664562 664570 8 0.0
bss 69544 69544 0 0.0
noinit 33216 33216 0 0.0
text 458596 458602 6 0.0

src/app/ReadClient.cpp Show resolved Hide resolved
SubscribeResponse is the last action in the Subscribe
transaction and ExchangeContext::HandleMessage
automatically closes exchanges that have no pending
requests nor responses.

ReadClient still kept the pointer to the exchange after
receiving SubscribeResponse, so it would attempt to abort
already closed exchange if the subscription was cancelled
after receiving the SubscribeResponse and before receving
a subsequent Report message.
@github-actions
Copy link

github-actions bot commented Nov 2, 2021

PR #11211: Size comparison from 12ec702 to e6ef7e9

Increases (18 builds for efr32, esp32, linux, nrfconnect, qpg, telink)
platform target config section 12ec702 e6ef7e9 change % change
efr32 lighting-app BRD4161A (read only) 735400 735416 16 0.0
.text 735392 735408 16 0.0
lock-app BRD4161A (read only) 714684 714700 16 0.0
.text 714676 714692 16 0.0
window-app BRD4161A (read only) 715596 715612 16 0.0
.text 715588 715604 16 0.0
esp32 all-clusters-app c3devkit (read only) 880170 880174 4 0.0
.flash.text 880170 880174 4 0.0
linux bridge-app debug+rpc (read only) 1278533 1278549 16 0.0
.text 1073685 1073701 16 0.0
lighting-app debug+rpc (read only) 1537505 1537521 16 0.0
.text 1277362 1277378 16 0.0
ota-provider-app debug (read only) 1236425 1236441 16 0.0
.text 1029922 1029938 16 0.0
tv-app debug (read only) 1770905 1770921 16 0.0
.text 1475826 1475842 16 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 860175 860191 16 0.0
text 577052 577060 8 0.0
nrf52840dk_nrf52840+rpc (read/write) 820999 821015 16 0.0
text 550224 550236 12 0.0
nrf5340dk_nrf5340_cpuapp text 506520 506528 8 0.0
lock-app nrf52840dk_nrf52840 text 558532 558540 8 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 762178 762194 16 0.0
text 488092 488100 8 0.0
pump-app nrf52840dk_nrf52840 (read/write) 842863 842879 16 0.0
text 562588 562600 12 0.0
pump-controller-app nrf52840dk_nrf52840 text 558268 558276 8 0.0
qpg lighting-app qpg6100+debug (read only) 489680 489688 8 0.0
.text 484360 484368 8 0.0
lock-app qpg6100+debug (read only) 466008 466016 8 0.0
.text 460688 460696 8 0.0
telink lighting-app tlsr9518adk80d (read/write) 661606 661614 8 0.0
text 457328 457334 6 0.0
Decreases (1 build for esp32)
platform target config section 12ec702 e6ef7e9 change % change
esp32 all-clusters-app m5stack (read only) 911115 911051 -64 -0.0
.flash.text 911115 911051 -64 -0.0
Full report (37 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 12ec702 e6ef7e9 change % change
efr32 lighting-app BRD4161A (read only) 735400 735416 16 0.0
(read/write) 114444 114444 0 0.0
.bss 112692 112692 0 0.0
.data 1752 1752 0 0.0
.text 735392 735408 16 0.0
BRD4161A+rpc (read only) 722840 722840 0 0.0
(read/write) 131052 131052 0 0.0
.bss 129196 129196 0 0.0
.data 1852 1852 0 0.0
.text 722832 722832 0 0.0
lock-app BRD4161A (read only) 714684 714700 16 0.0
(read/write) 112260 112260 0 0.0
.bss 110548 110548 0 0.0
.data 1712 1712 0 0.0
.text 714676 714692 16 0.0
window-app BRD4161A (read only) 715596 715612 16 0.0
(read/write) 112584 112584 0 0.0
.bss 110868 110868 0 0.0
.data 1716 1716 0 0.0
.text 715588 715604 16 0.0
esp32 all-clusters-app c3devkit (read only) 880170 880174 4 0.0
(read/write) 1307552 1307552 0 0.0
.dram0.bss 58424 58424 0 0.0
.dram0.data 16464 16464 0 0.0
.flash.rodata 199424 199424 0 0.0
.flash.text 880170 880174 4 0.0
.iram0.text 57554 57554 0 0.0
m5stack (read only) 911115 911051 -64 -0.0
(read/write) 427312 427312 0 0.0
.dram0.bss 60920 60920 0 0.0
.dram0.data 32100 32100 0 0.0
.flash.rodata 208128 208128 0 0.0
.flash.text 911115 911051 -64 -0.0
.iram0.text 125115 125115 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 698232 698232 0 0.0
.bss 77688 77688 0 0.0
.data 1900 1900 0 0.0
.text 612844 612844 0 0.0
lock-app k32w061+debug (read/write) 590524 590524 0 0.0
.bss 68188 68188 0 0.0
.data 1864 1864 0 0.0
.text 514672 514672 0 0.0
shell k32w061+debug (read/write) 424772 424772 0 0.0
.bss 63280 63280 0 0.0
.data 672 672 0 0.0
.text 359116 359116 0 0.0
linux all-clusters-app debug (read only) 1684105 1684105 0 0.0
(read/write) 118992 118992 0 0.0
.bss 50608 50608 0 0.0
.data 1010 1010 0 0.0
.data.rel.ro 62112 62112 0 0.0
.dynamic 592 592 0 0.0
.got 4088 4088 0 0.0
.init 27 27 0 0.0
.init_array 536 536 0 0.0
.rodata 137845 137845 0 0.0
.text 1413202 1413202 0 0.0
bridge-app debug+rpc (read only) 1278533 1278549 16 0.0
(read/write) 84104 84104 0 0.0
.bss 50768 50768 0 0.0
.data 976 976 0 0.0
.data.rel.ro 27368 27368 0 0.0
.dynamic 592 592 0 0.0
.got 3952 3952 0 0.0
.init 27 27 0 0.0
.init_array 400 400 0 0.0
.rodata 109604 109604 0 0.0
.text 1073685 1073701 16 0.0
chip-tool debug (read only) 4312925 4312925 0 0.0
(read/write) 123552 123552 0 0.0
.bss 17680 17680 0 0.0
.data 1584 1584 0 0.0
.data.rel.ro 98880 98880 0 0.0
.dynamic 592 592 0 0.0
.got 4368 4368 0 0.0
.init 27 27 0 0.0
.init_array 424 424 0 0.0
.rodata 217488 217488 0 0.0
.text 3829781 3829781 0 0.0
lighting-app debug+rpc (read only) 1537505 1537521 16 0.0
(read/write) 100976 100976 0 0.0
.bss 40152 40152 0 0.0
.data 1106 1106 0 0.0
.data.rel.ro 54448 54448 0 0.0
.dynamic 608 608 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 528 528 0 0.0
.rodata 127761 127761 0 0.0
.text 1277362 1277378 16 0.0
ota-provider-app debug (read only) 1236425 1236441 16 0.0
(read/write) 67072 67072 0 0.0
.bss 36608 36608 0 0.0
.data 752 752 0 0.0
.data.rel.ro 24616 24616 0 0.0
.dynamic 592 592 0 0.0
.got 4016 4016 0 0.0
.init 27 27 0 0.0
.init_array 440 440 0 0.0
.rodata 110376 110376 0 0.0
.text 1029922 1029938 16 0.0
ota-requestor-app debug (read only) 1293697 1293697 0 0.0
(read/write) 76392 76392 0 0.0
.bss 44864 44864 0 0.0
.data 816 816 0 0.0
.data.rel.ro 25576 25576 0 0.0
.dynamic 592 592 0 0.0
.got 3984 3984 0 0.0
.init 27 27 0 0.0
.init_array 512 512 0 0.0
.rodata 121600 121600 0 0.0
.text 1074306 1074306 0 0.0
shell debug (read only) 785041 785041 0 0.0
(read/write) 57664 57664 0 0.0
.bss 16072 16072 0 0.0
.data 242 242 0 0.0
.data.rel.ro 36848 36848 0 0.0
.dynamic 592 592 0 0.0
.got 3528 3528 0 0.0
.init 27 27 0 0.0
.init_array 336 336 0 0.0
.rodata 77295 77295 0 0.0
.text 606210 606210 0 0.0
tv-app debug (read only) 1770905 1770921 16 0.0
(read/write) 288536 288536 0 0.0
.bss 222192 222192 0 0.0
.data 2032 2032 0 0.0
.data.rel.ro 58672 58672 0 0.0
.dynamic 592 592 0 0.0
.got 4408 4408 0 0.0
.init 27 27 0 0.0
.init_array 608 608 0 0.0
.rodata 153176 153176 0 0.0
.text 1475826 1475842 16 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2293608 2293608 0 0.0
.bss 179796 179796 0 0.0
.data 5216 5216 0 0.0
.heap 851432 851432 0 0.0
.text 1256208 1256208 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2272736 2272736 0 0.0
.bss 171836 171836 0 0.0
.data 5568 5568 0 0.0
.heap 859040 859040 0 0.0
.text 1235336 1235336 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2250392 2250392 0 0.0
.bss 170740 170740 0 0.0
.data 5552 5552 0 0.0
.heap 860152 860152 0 0.0
.text 1212992 1212992 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139744 1139744 0 0.0
.bss 11752 11752 0 0.0
.data 4368 4368 0 0.0
.heap 1020328 1020328 0 0.0
.text 103128 103128 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2048328 2048328 0 0.0
.bss 156232 156232 0 0.0
.data 4968 4968 0 0.0
.heap 875248 875248 0 0.0
.text 1010928 1010928 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 860175 860191 16 0.0
bss 111148 111148 0 0.0
rodata 96360 96360 0 0.0
text 577052 577060 8 0.0
nrf52840dk_nrf52840+rpc (read/write) 820999 821015 16 0.0
bss 107392 107392 0 0.0
rodata 87136 87136 0 0.0
text 550224 550236 12 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 785218 785218 0 0.0
bss 112524 112524 0 0.0
rodata 91604 91604 0 0.0
text 506520 506528 8 0.0
lock-app nrf52840dk_nrf52840 (read/write) 836883 836883 0 0.0
bss 110184 110184 0 0.0
rodata 92716 92716 0 0.0
text 558532 558540 8 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 762178 762194 16 0.0
bss 111596 111596 0 0.0
rodata 88020 88020 0 0.0
text 488092 488100 8 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 497323 497323 0 0.0
bss 51824 51824 0 0.0
rodata 45776 45776 0 0.0
text 339436 339436 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 842863 842879 16 0.0
bss 110320 110320 0 0.0
rodata 94424 94424 0 0.0
text 562588 562600 12 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 836739 836739 0 0.0
bss 110220 110220 0 0.0
rodata 92716 92716 0 0.0
text 558268 558276 8 0.0
shell nrf52840dk_nrf52840 (read/write) 775903 775903 0 0.0
bss 109096 109096 0 0.0
rodata 72404 72404 0 0.0
text 519792 519792 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 690906 690906 0 0.0
bss 110080 110080 0 0.0
rodata 67044 67044 0 0.0
text 440400 440400 0 0.0
p6 lock-app default (read/write) 2166560 2166560 0 0.0
.bss 66184 66184 0 0.0
.data 2416 2416 0 0.0
.heap 964744 964744 0 0.0
.text 1124824 1124824 0 0.0
qpg lighting-app qpg6100+debug (read only) 489680 489688 8 0.0
(read/write) 114144 114144 0 0.0
.bss 50320 50320 0 0.0
.data 1000 1000 0 0.0
.text 484360 484368 8 0.0
lock-app qpg6100+debug (read only) 466008 466016 8 0.0
(read/write) 114140 114140 0 0.0
.bss 49272 49272 0 0.0
.data 956 956 0 0.0
.text 460688 460696 8 0.0
persistent-storage-app qpg6100+debug (read only) 155820 155820 0 0.0
(read/write) 114140 114140 0 0.0
.bss 27752 27752 0 0.0
.data 372 372 0 0.0
.text 150500 150500 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 661606 661614 8 0.0
bss 68960 68960 0 0.0
noinit 33216 33216 0 0.0
text 457328 457334 6 0.0

@Damian-Nordic Damian-Nordic merged commit 3544a6b into project-chip:master Nov 2, 2021
PSONALl pushed a commit to PSONALl/connectedhomeip that referenced this pull request Dec 3, 2021
…ject-chip#11211)

SubscribeResponse is the last action in the Subscribe
transaction and ExchangeContext::HandleMessage
automatically closes exchanges that have no pending
requests nor responses.

ReadClient still kept the pointer to the exchange after
receiving SubscribeResponse, so it would attempt to abort
already closed exchange if the subscription was cancelled
after receiving the SubscribeResponse and before receving
a subsequent Report message.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants