Current implementation of poll prepare/update could end up busy looping if `poll()` function was called before/during DTLS client handshake (i. e. `poll()` called before an initial `send()`). Fix this, by monitoring the handshake semaphore, already available in the tls_context structure for DTLS client instead of underlying socket. After the handshake is complete, switch to monitoring the underlying socket instead. For DTLS server this is not needed, since the handshake is initiated in the `recv()` function, therefore any incoming data should trigger the handshake. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no> |
||
|---|---|---|
| .. | ||
| ip | ||
| l2 | ||
| lib | ||
| buf.c | ||
| CMakeLists.txt | ||
| hostname.c | ||
| Kconfig | ||
| Kconfig.hostname | ||
| Kconfig.template.log_config.default.net | ||
| Kconfig.template.log_config.net | ||