Parcourir la source

[master] fixed the IPPROTO argument of one of the fetches

it used IPPROTO_IDP instead of IPPROTO_UDP, somehow this snuck past my review, and since IPPROTO_IDP exists, it reverted to TCP (which isn't implemented yet). The future-proof fix is to either not allow this to be passed (use a boolen use_udp or something), or raise an error on an unknown protocol.

But for now this quick fix should at least get it working again. Reviewed on jabber by stephen.
Jelte Jansen il y a 14 ans
Parent
commit
54f4650b7d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/lib/asiolink/recursive_query.cc

+ 1 - 1
src/lib/asiolink/recursive_query.cc

@@ -173,7 +173,7 @@ private:
             int serverIndex = rand() % zs;
             dlog("Sending query to zone server (" + question_.toText() +
                 ") to " + zone_servers_.at(serverIndex).first);
-            IOFetch query(IPPROTO_IDP, io_, question_,
+            IOFetch query(IPPROTO_UDP, io_, question_,
                 zone_servers_.at(serverIndex).first,
                 zone_servers_.at(serverIndex).second, buffer_, this,
                 query_timeout_);