mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-01 18:37:10 +03:00
Block2: Fix ordering issue when calling coap_add_data_large_response()
If the response code was set after calling coap_add_data_large_response(), the continuing blocks were sent with code 0.00. Now check following call to response handler that the correct code is held within the lg_xmit information.
This commit is contained in:
1 parent
ae752e9e7a
commit
48a680359d
4 files changed
+42
-12
No files matched your search
@@ -220,6 +220,18 @@ int coap_add_data_large_internal(struct coap_session_t *session,
|
||||
coap_release_large_data_t release_func,
|
||||
void *app_ptr);
|
||||
|
||||
/**
|
||||
* The function checks that the code in a newly formed lg_xmit created by
|
||||
* coap_add_data_large_response() is updated.
|
||||
*
|
||||
* @param session The session
|
||||
* @param response The response PDU to to check
|
||||
* @param resource The requested resource
|
||||
* @param query The requested query
|
||||
*/
|
||||
void coap_check_code_lg_xmit(coap_session_t *session, coap_pdu_t *response,
|
||||
coap_resource_t *resource, coap_string_t *query);
|
||||
|
||||
/** @} */
|
||||
|
||||
#endif /* COAP_BLOCK_INTERNAL_H_ */
|
||||
Reference in new issue
Block a user