[riot-notifications] [RIOT-OS/RIOT] nanocoap: incomplete response to /.well-known/core request (#10731)

Ken Bannister notifications at github.com
Tue Jan 8 12:31:41 CET 2019


#### Description
nanocoap client does not receive a complete response when send blockwise, for example a response from a nanocoap server for /.well-known/core.

A gcoap client experiences the same problem, but this report focuses on nanocoap.

#### Steps to reproduce the issue
A nanocoap server's /.well-known/core resource uses the CoAP block extension to return the resource over multiple responses. Use nanocoap_get() or nanocoap_receive() to retrieve it. See [an example](https://github.com/RIOT-OS/RIOT/pull/10640#issuecomment-452227296) when using the nanocoap client CLI in #10640.

#### Expected results
Since nanocoap_(get|receive) do not understand the block2 option in the response, they should respond with some error code (negative value) to the caller.

#### Actual results
nanocoap_(get|receive) responds with the length of response from the server.

#### Versions
Error occurs with a request to nanocoap /.well-known/core since 2018.10 release, which started to use a block-based response.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/issues/10731
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190108/2fe25a47/attachment-0001.html>


More information about the notifications mailing list