Skip to content

Commit

Permalink
dnsdist: Try flushing egress data after processing readable streams
Browse files Browse the repository at this point in the history
  • Loading branch information
rgacogne committed Dec 22, 2023
1 parent 8be7959 commit 4cec715
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pdns/dnsdistdist/doh3.cc
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,8 @@ static void handleSocketReadable(DOH3Frontend& frontend, ClientState& clientStat
}

processH3Events(clientState, frontend, conn->get(), client, serverConnID);

flushEgress(sock, conn->get().d_conn, client);
}
else {
DEBUGLOG("Connection not established");
Expand Down
2 changes: 2 additions & 0 deletions pdns/dnsdistdist/doq.cc
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,8 @@ static void handleSocketReadable(DOQFrontend& frontend, ClientState& clientState
while (quiche_stream_iter_next(readable.get(), &streamID)) {
handleReadableStream(frontend, clientState, *conn, streamID, client, serverConnID);
}

flushEgress(sock, conn->get().d_conn, client);
}
else {
DEBUGLOG("Connection not established");
Expand Down

0 comments on commit 4cec715

Please sign in to comment.