3 ms·
Musl also includes res_send() etc., which can be used for MX records, and e.g. Qmail did use that back then. Here's the commit adding TCP support to those funct
by vidarh 3y ago
Musl also includes res_send() etc., which can be used for MX records, and e.g. Qmail did use that back then. Here's the commit adding TCP support to those functions in Musl.
http://git.musl-libc.org/cgit/musl/commit/src/network/res_msend.c?id=51d4669fb97782f6a66606da852b5afd49a08001 http://git.musl-libc.org/cgit/musl/commit/src/network/res_ms...
AOL was the specific case we ran into that at the time (ca. 2000) returned either MX or A records (can't remember which caused the problem) that required more than 512 bytes.
- geocar 3y agoI wasn't aware musl implemented libres. I don't have a problem with libres doing TCP. Qmail's issue was a hardcoded buffer size so this patch to musl wouldn't have helped.
- vidarh 3y agoThe point wasn't that this would have helped Qmail - Musl didn't exist back then for that matter -, but that running into the 512 byte limit and needing TCP fallback was already a thing. Bumping a buffer size is far less effort than having to replace the resolver.