jqiaobln

Results 16 comments of jqiaobln

I'm running the library on a non-linux environment so cannot use Valgrind. Also trying with the current master will be difficult as it requires re-merging. I double-checked that I'm using...

It appeared to me every option after "Uri-Path:did, Uri-Path:12345678, " is corrupted in the 2nd message, the 4 byte randomized token seems to be fine "{02fd1f00d0}". I have traced the...

The server response for 1st block message: * UDP : received 12 bytes v:1 t:ACK c:2.31 i:4c8a {0100000001} [ Block1:0/M/512 ] ** UDP : mid=0x4c8a: removed

3 versions of PDUs: v:1 t:CON c:POST i:4c8b {02fd1f00d0} [ Uri-Host:coaptest.server.com, Uri-Port:5784, Uri-Path:msg, Uri-Path:v1, Uri-Path:did, Uri-Path:12345678, Content-Format:application/octet-stream, Block1:0/M/512, Size1:2148 ] v:1 t:CON c:POST i:4c8b {02fd1f00d0} [ Uri-Host:coaptest.server.com, Uri-Port:5784, Uri-Path:msg, Uri-Path:v1,...

> That looks fine. A bit puzzled why your client elects to go for a block size of 512 instead of 1024, but am guessing that is because you are...

I'm running an environment compiled in C++14. int should be 4 bytes. I wrote my own version of coap_realloc_type, and has passed unit tests for it. But I will double...

I just lost the original data and cannot reproduce the issue for now. But I verified that coap_realloc_type copies the right data and allocates the right size. Before I can...

Managed to reproduce: ---Add data PDU 1 v:1 t:CON c:POST i:4c36 {02db9c01d0} [ Uri-Host:coaptest.server.com, Uri-Port:5784, Uri-Path:msg, Uri-Path:v1, Uri-Path:did, Uri-Path:12345678, Content-Format:application/octet-stream, Block1:1/M/512, Size1:1488 ] ---Add data PDU 2 v:1 t:CON c:POST...

The corruption happened in between the 2 pdu printout: ---Resize PDU 1 v:1 t:CON c:POST i:4c35 {026c5700d0} [ Uri-Host::coaptest.server.com, Uri-Port:5784, Uri-Path:msg, Uri-Path:v1, Uri-Path:did, Uri-Path:12345678, Content-Format:application/octet-stream, Block1:1/M/512, Size1:1488 ] ---Resize PDU...

Actually I think the corruption happened in the below lines: coap_log(LOG_DEBUG, "---Resize PDU 2\n"); coap_show_pdu(0, pdu); if (new_hdr == NULL) { coap_log(LOG_WARNING, "coap_pdu_resize: realloc failed\n"); return 0; } pdu->token =...