Files
wolfssl/wolfssl
Juliusz Sosinowicz 85e85c1fb4 Address review: probe the DTLS socket type where the fd is set
Under WOLFSSL_RW_THREADED the read and write threads could both perform
the lazy isDGramSock() first-time cache write concurrently; the cached
bit-fields share a storage unit with other dtlsCtx flags, making this a
data race.

Instead of caching from inside the I/O callbacks, run the
getsockopt(SO_TYPE) probe where dtlsCtx.rfd/wfd is assigned and store
the result per descriptor (rfd and wfd may be different sockets of
different types). fd assignment happens during single-threaded setup,
so no thread-specific handling is needed, and the I/O callbacks reduce
to reading a struct member, so isDGramSock() is dropped in favor of
reading the flags directly. The stateless-hash test no longer needs to
mask the fields: the I/O callbacks no longer write to the WOLFSSL
object.
2026-06-10 14:03:52 +02:00
..
2026-06-08 16:52:06 -05:00
2026-02-18 09:52:21 -07:00
2026-05-26 14:54:30 +02:00
2026-05-26 14:54:30 +02:00
2026-02-18 09:52:21 -07:00
2026-05-26 14:54:30 +02:00
2025-09-23 08:32:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-02-18 09:52:21 -07:00
2026-05-04 10:35:04 +02:00
2026-04-08 07:34:41 -06:00
2026-02-18 09:52:21 -07:00