From a5c9214743e76bd8bee1cb5f4d0d6dc3d1171c58 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 1 Aug 2006 21:35:07 +0000 Subject: Removed threaded dns (it might make a comeback some day, but as it stands its incompatible with the new OO resolver) Migrated to new OO resolver, removed as much firedns craq as is safe to do so, operates over one file descriptor now and keyed against request id. The only way to use the system is via class Resolver (so i'll need to migrate the rest of the ircd to use it) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4622 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_nick.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/cmd_nick.cpp') diff --git a/src/cmd_nick.cpp b/src/cmd_nick.cpp index ab286bee4..ddcb04940 100644 --- a/src/cmd_nick.cpp +++ b/src/cmd_nick.cpp @@ -149,20 +149,9 @@ void cmd_nick::Handle (const char** parameters, int pcnt, userrec *user) } else { -#ifdef THREADED_DNS - // initialize their dns lookup thread - pthread_attr_t attribs; - pthread_attr_init(&attribs); - pthread_attr_setdetachstate(&attribs, PTHREAD_CREATE_DETACHED); - if (pthread_create(&user->dnsthread, &attribs, dns_task, (void *)user) != 0) - { - log(DEBUG,"Failed to create DNS lookup thread for user %s: %s",user->nick, strerror(errno)); - } -#else user->dns_done = (!lookup_dns(user->nick)); if (user->dns_done) log(DEBUG,"Aborting dns lookup of %s because dns server experienced a failure.",user->nick); -#endif } } if (user->registered == REG_NICKUSER) -- cgit v1.3.1-10-gc9f91