Index: src/OFDNSResolver.m ================================================================== --- src/OFDNSResolver.m +++ src/OFDNSResolver.m @@ -2009,10 +2009,17 @@ answerRecords, authorityRecords, additionalRecords, query->_context, nil); return true; } + +- (void)socket: (OF_KINDOF(OFUDPSocket *))sock + didFailToReceiveWithException: (id)exception +{ + [sock asyncReceiveIntoBuffer: _buffer + length: BUFFER_LENGTH]; +} - (void)asyncResolveSocketAddressesForHost: (OFString *)host target: (id)target selector: (SEL)selector context: (id)context Index: src/OFRunLoop+Private.h ================================================================== --- src/OFRunLoop+Private.h +++ src/OFRunLoop+Private.h @@ -24,14 +24,16 @@ OF_ASSUME_NONNULL_BEGIN @class OFRunLoop_State; +#ifdef OF_HAVE_SOCKETS @protocol OFTCPSocketDelegate_Private - (void)of_socketDidConnect: (OF_KINDOF(OFTCPSocket *))socket exception: (nullable id)exception; @end +#endif @interface OFRunLoop () + (void)of_setMainRunLoop: (OFRunLoop *)runLoop; #ifdef OF_HAVE_SOCKETS + (void)of_addAsyncReadForStream: (OFStream *)