Commit Briefs

Omar Polo

uri -> phos_uri for !HAVE_ASR_RUN


Omar Polo

switch to phos_uri

Initially I took the IRI parser from gmid, stripped of the UTF-8 things and transformed back into a URI parser. Then I've added some functions to resolve URIs, but it wasn't enough. gmid parser is aimed at servers, and so it doesn't handle very well relative links. This makes use of the libphos uri parser, which was coded to follow the RFC more strictly, and to fully support all kinds of URIs. It'll need to be expanded in the future and be improved for sure


Omar Polo

fix continue condition


Omar Polo

handle success code other than 20

20 is the only used, but *technically* one (read: Sean and his client torture test) can send 29, 27, ...


Omar Polo

correctly handle the port in the request

add an explicit port if one is given and it's not 1965


Omar Polo

fmt


Omar Polo

simplify host resolution on !HAVE_ASR_RUN

no functional changes intended



Omar Polo

fmt



Omar Polo

fmt + avoid possible errors


Omar Polo

typo


Omar Polo

yield_w after a failed connect


Omar Polo

first draft of asynchronous dns resolution

Use asr on OpenBSD to do DNS query lookups asynchronously. At the moment it seems a bit hard to provide the whole asr + asr_event stuff in the compat layer, so hide those bits behind an #ifdef; not the prettiest solution, but a working one. Future works may either: - provide a stub implementation for the asr stuff - bundle the libasr from OpenSMTD-portable