mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-03 03:01:05 +03:00
Congestion Control: add in RFC7252 configuration flexibility
Create where appropriate default values for the Congestion control base values and update the derived CC values accordingly. Move derived value #define to coap_session_internal.h. Update coap_session_t to hold the new CC values. Update documentation for the new CC functions that update / get the appropriate values. NOTE: PROBING_WAIT is not currently checked in the code.
This commit is contained in:
1 parent
41afb92141
commit
5a10ce4890
11 files changed
+382
-170
No files matched your search
@@ -1819,7 +1819,7 @@ main(int argc, char **argv) {
|
||||
|
||||
if (is_mcast && wait_seconds == DEFAULT_WAIT_TIME)
|
||||
/* Allow for other servers to respond within DEFAULT_LEISURE RFC7252 8.2 */
|
||||
wait_seconds = COAP_DEFAULT_LEISURE;
|
||||
wait_seconds = coap_session_get_default_leisure(session).integer_part;
|
||||
|
||||
wait_ms = wait_seconds * 1000;
|
||||
coap_log(LOG_DEBUG, "timeout is set to %u seconds\n", wait_seconds);
|
||||
|
||||
Reference in new issue
Block a user