<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nng, branch wolf-peer-cn</title>
<subtitle>A mirror of https://github.com/nanomsg/nng
</subtitle>
<id>https://cogarr.net/source/cgit.cgi/nng/atom?h=wolf-peer-cn</id>
<link rel='self' href='https://cogarr.net/source/cgit.cgi/nng/atom?h=wolf-peer-cn'/>
<link rel='alternate' type='text/html' href='https://cogarr.net/source/cgit.cgi/nng/'/>
<updated>2025-10-05T14:19:24Z</updated>
<entry>
<title>fixes #2158 Implement support for NNG_OPT_TLS_PEER_CN for WolfSSL</title>
<updated>2025-10-05T14:19:24Z</updated>
<author>
<name>Garrett D'Amore</name>
<email>garrett@damore.org</email>
</author>
<published>2025-10-05T14:19:24Z</published>
<link rel='alternate' type='text/html' href='https://cogarr.net/source/cgit.cgi/nng/commit/?id=bc2cbfea1ed4a5c6192cc86117dbc6d306b4fdaf'/>
<id>urn:sha1:bc2cbfea1ed4a5c6192cc86117dbc6d306b4fdaf</id>
<content type='text'>
This also provides an implementation for getting ALT names, although
nothing uses that yet.  We plan to provide a new certificate API to
replace these with a nicer API, as obtaining the full list of certs
may be unreasonable.
</content>
</entry>
<entry>
<title>tests: Add test for serving http static binary</title>
<updated>2025-10-05T00:57:56Z</updated>
<author>
<name>Garrett D'Amore</name>
<email>garrett@damore.org</email>
</author>
<published>2025-10-05T00:41:06Z</published>
<link rel='alternate' type='text/html' href='https://cogarr.net/source/cgit.cgi/nng/commit/?id=cfcc004cff8f6e11c545070ed0e9ba0253227e44'/>
<id>urn:sha1:cfcc004cff8f6e11c545070ed0e9ba0253227e44</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fixes #2165 nng_http_handler_alloc_static crashes if content type is null</title>
<updated>2025-10-05T00:57:56Z</updated>
<author>
<name>Garrett D'Amore</name>
<email>garrett@damore.org</email>
</author>
<published>2025-10-05T00:17:59Z</published>
<link rel='alternate' type='text/html' href='https://cogarr.net/source/cgit.cgi/nng/commit/?id=d6eeff578cc8e2ada1a80f4d1ddaa098931f9a7d'/>
<id>urn:sha1:d6eeff578cc8e2ada1a80f4d1ddaa098931f9a7d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>remaps EAI_AGAIN to NNG_EADDRINVAL (#2169)</title>
<updated>2025-10-05T00:10:07Z</updated>
<author>
<name>Jon Gjengset</name>
<email>jon@thesquareplanet.com</email>
</author>
<published>2025-10-05T00:10:07Z</published>
<link rel='alternate' type='text/html' href='https://cogarr.net/source/cgit.cgi/nng/commit/?id=37fe4eff0e23ffbc251034b8001a1065c55f9951'/>
<id>urn:sha1:37fe4eff0e23ffbc251034b8001a1065c55f9951</id>
<content type='text'>
When running nng tests in CI under nix on Linux, I would see
`nng_dialer_start` fail with `NNG_EAGAIN` when invoked with `flags = 0`
and a URL of `tcp://999.888.777.666:8080` (this is in a test that is
supposed to check that dialing that gives you `NNG_EINVAL` or
`NNG_EADDRINVAL`).

This can happen if `nni_resolv_ip` in `posix_resolv_gai.c` gets
`EAI_AGAIN` from `getaddrinfo`, which the man pages suggest _can_ happen
due to "a temporary failure in name resolution". In the nix case, this
is due to the nix build sandbox, but it can also arise simply due to DNS
overload or misconfiguration.

In either case, nng should not bubble up `EAI_AGAIN` `as `NNG_EAGAIN`
from `nng_dialer_start`, as `NNG_EAGAIN` has a different semantic
meaning. `NNG_EAGAIN` is more equivalent to "would block", and should
only be generated through calls with the `NONBLOCK` flag. We don't have
a perfect mapping for `EAI_AGAIN`, but the closest is probably
`NNG_ADDRINVAL` to indicate that we failed to resolve the given address
(even if it's temporary). Another option would be to introduce another
error variant like `NNG_ENAMELOOKUP`, but that felt excessive to cover
this case.
</content>
</entry>
<entry>
<title>dtls: Add a test for "large" (1K) messages</title>
<updated>2025-09-29T06:40:32Z</updated>
<author>
<name>Garrett D'Amore</name>
<email>garrett@damore.org</email>
</author>
<published>2025-09-29T05:41:52Z</published>
<link rel='alternate' type='text/html' href='https://cogarr.net/source/cgit.cgi/nng/commit/?id=ef8e535c441f116f653e327cc66c21286a4104ec'/>
<id>urn:sha1:ef8e535c441f116f653e327cc66c21286a4104ec</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix nuts colors to match acutest.</title>
<updated>2025-09-29T05:34:02Z</updated>
<author>
<name>Garrett D'Amore</name>
<email>garrett@damore.org</email>
</author>
<published>2025-09-29T05:34:02Z</published>
<link rel='alternate' type='text/html' href='https://cogarr.net/source/cgit.cgi/nng/commit/?id=159ac495db4cb32f40870e19ee8a87ec77fc3482'/>
<id>urn:sha1:159ac495db4cb32f40870e19ee8a87ec77fc3482</id>
<content type='text'>
</content>
</entry>
<entry>
<title>defs: Fix incorrect define of NNI_PUTLEXX macros.</title>
<updated>2025-09-29T05:21:04Z</updated>
<author>
<name>Garrett D'Amore</name>
<email>garrett@damore.org</email>
</author>
<published>2025-09-29T05:21:04Z</published>
<link rel='alternate' type='text/html' href='https://cogarr.net/source/cgit.cgi/nng/commit/?id=35ad85188b28bcfd13c4e286eb797df6779281ad'/>
<id>urn:sha1:35ad85188b28bcfd13c4e286eb797df6779281ad</id>
<content type='text'>
This was responsible for breaking DTLS, and likely other things we
never noticed, if the pointer passed in was not already a uint8_t *.
</content>
</entry>
<entry>
<title>Fix dtls reconnect attempts.</title>
<updated>2025-09-15T00:21:00Z</updated>
<author>
<name>Garrett D'Amore</name>
<email>garrett@damore.org</email>
</author>
<published>2025-09-15T00:21:00Z</published>
<link rel='alternate' type='text/html' href='https://cogarr.net/source/cgit.cgi/nng/commit/?id=f716f61c81a5f120d61b58ee9b4a52b33b2ecb16'/>
<id>urn:sha1:f716f61c81a5f120d61b58ee9b4a52b33b2ecb16</id>
<content type='text'>
Once a DTLS client is started and has reasonably resolved things, it
will restart message connections; this way we can restart after a
failed connection attempt (e.g. if the CERT was bad or something.)
</content>
</entry>
<entry>
<title>Only log aborted connections at debug.</title>
<updated>2025-09-15T00:20:14Z</updated>
<author>
<name>Garrett D'Amore</name>
<email>garrett@damore.org</email>
</author>
<published>2025-09-15T00:20:14Z</published>
<link rel='alternate' type='text/html' href='https://cogarr.net/source/cgit.cgi/nng/commit/?id=d32abc2d5944637372f6ba597575ed17b14b974e'/>
<id>urn:sha1:d32abc2d5944637372f6ba597575ed17b14b974e</id>
<content type='text'>
This is occurs normally on socket close and the error messages were alarming.
</content>
</entry>
<entry>
<title>mbedtls: reduce logging for debug crypto to debug log</title>
<updated>2025-09-15T00:19:08Z</updated>
<author>
<name>Garrett D'Amore</name>
<email>garrett@damore.org</email>
</author>
<published>2025-09-15T00:19:08Z</published>
<link rel='alternate' type='text/html' href='https://cogarr.net/source/cgit.cgi/nng/commit/?id=a096df1fc30cc44ab01aa10bd1f72b33fd477b10'/>
<id>urn:sha1:a096df1fc30cc44ab01aa10bd1f72b33fd477b10</id>
<content type='text'>
Warning level was just too noisy.
</content>
</entry>
</feed>
