You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With intermittent connections, where duplicate requests end up being generated, the following happens: (client)
self._blockLayer.receive_response(transaction)
File "/usr/local/lib/python2.7/dist-packages/coapthon/layers/blocklayer.py", line 182, in receive_response
transaction.response.payload = self._block2_sent[key_token].payload + transaction.response.payload
TypeError: cannot concatenate 'str' and 'NoneType' objects
This occurred using the forward proxy (with multiple simultaneous requests) and the problem seems to be, after correctly receiving the first block, the sending of a delayed response/ACK to the initial request but as if it was block 2 with 0 bytes:
@Tanganelli, could it be a race condition with the transaction.response field?
At many places the response is initialized like this:
transaction.response=Response()
transaction.response.destination=transaction.request.sourcetransaction.response.token=transaction.request.tokentransaction.response.code=defines.Codes.CONTINUE.numbertransaction.response.block1= (num, m, size)
Another thread could access the response before it is fully populated.
With intermittent connections, where duplicate requests end up being generated, the following happens:
(client)
This occurred using the forward proxy (with multiple simultaneous requests) and the problem seems to be, after correctly receiving the first block, the sending of a delayed response/ACK to the initial request but as if it was block 2 with 0 bytes:
(forward proxy)
More complete output from the client side:
The text was updated successfully, but these errors were encountered: