-
Notifications
You must be signed in to change notification settings - Fork 69
Block2 random access bypass for GET #7
Comments
…GET). Users can now create requests that only retrieve a single block from the destination.
I dealt with this issue (https://github.com/Lanterm/californium/tree/memorytest). The client still creates transfer state, though. The reason is that when receiving the response block, the client has to remember that it only asked for this single block and that it was not the server that opted for the blockwise transfer. Sure, the client could also derive this information by checking the request it previously sent, however, I favored explicitly setting a boolean that the exchange is a random access. The user now can write code such as the following:
There remains one problem: Assume the code above but instead we want to access block 0 instead of 7. When the client processes the request in the BlockwiseLayer, it does not know, however, if the user wanted to
We could of course just define that the second scenario is no longer possible with Cf as scenario a) seems to be more expedient then b). Tell me what you think. |
A storage abstraction for PSK
missing files for PR eclipse-archived#7
When requested out-of-order, Cf can skip the (atomic) buffering and just return the block without creating transfer state for the client.
The text was updated successfully, but these errors were encountered: