SRP server unable to handle big TXT records #9834
Unanswered
RahulRGaikwad
asked this question in
Q&A
Replies: 1 comment
-
@RahulRGaikwad The TXT buffer size is limited to 64 in openthread by default: (OPENTHREAD_CONFIG_SRP_CLIENT_BUFFERS_TXT_BUFFER_SIZE) Each service entry could contain more than one Txt entry, you can register it with the ot cli command:
If bigger TXT size is required, you can increase the OPENTHREAD_CONFIG_SRP_CLIENT_BUFFERS_TXT_BUFFER_SIZE config. I tried to increase it to 80, and register a service with 80 bytes TXT:
Then the ESP TBR works well:
It can also be discoved by avahi-browse:
Generally it works as expected. Could you please share the steps to reproduce the crash issue? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
Currently trying to use SRP client to register information, to a SRP server.
The SRP server in question, is an ESP32-C6 flashed with ot_br example code.
First I tried using SRP client buffers to allocate service entries. This was not possible as each service entry object, can only contain one TXT entry object.
So I manually created a SRP service object, and was able to assign multiple TXT entries.
But upon registering the SRP server crashes, when the total encoded buffer of the TXT entries crosses 64 bytes.
The crash log:
Looks like it's the SRP handler registered by ot_br, that's crashing.
Any help on how to resolve this issue, will be helpful
Beta Was this translation helpful? Give feedback.
All reactions