Skip to content

Commit

Permalink
Fix socket send in resolver (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
resetius authored Sep 12, 2024
1 parent c736dad commit 2768f45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coroio/resolver.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "resolver.hpp"
#include "socket.hpp"
#include "sockutils.hpp"
#include "promises.hpp"
#ifdef __linux__
#include "uring.hpp"
Expand Down Expand Up @@ -216,8 +217,7 @@ TFuture<void> TResolver<TPoller>::SenderTask() {
Inflight[Xid] = req;
CreatePacket(req.Name, req.Type, buf, &len, Xid);
Xid = 1 + (Xid + 1) % 65535;
auto size = co_await Socket.WriteSome(buf, len);
assert(size == len);
co_await TByteWriter(Socket).Write(buf, len);
}
co_return;
}
Expand Down

0 comments on commit 2768f45

Please sign in to comment.