Skip to content

Commit

Permalink
tmp: process all synchronously
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukáš Ondráček committed Nov 21, 2024
1 parent 54c9e97 commit b0ba7c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion daemon/defer.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
#define IDLE_TIMEOUT 1000000 // ns (THREAD_CPUTIME); if exceeded, continue processing after next poll phase
#define PHASE_UDP_TIMEOUT 400000 // ns (THREAD_CPUTIME); switch between udp, non-udp phases
#define PHASE_NON_UDP_TIMEOUT 400000 // ns (THREAD_CPUTIME); after timeout or emptying queue
#define MAX_WAITING_REQS_SIZE 0 // bytes; if exceeded, some deferred requests are processed in poll phase
#define MAX_WAITING_REQS_SIZE 0 // bytes; if exceeded, some deferred requests are processed in poll phase
// single TCP allocates more than 64KiB wire buffer
// TODO check whether all important allocations are counted;
// different things are not counted: tasks and subsessions (not deferred after created), uv handles, queues overhead, ...;
Expand Down Expand Up @@ -433,6 +433,7 @@ static enum protolayer_iter_cb_result pl_defer_unwrap(
}

int priority = classify((const union kr_sockaddr *)ctx->comm->comm_addr, ctx->session->stream);
priority = -1;

if (priority == -1) {
VERBOSE_LOG(" CONTINUE\n");
Expand Down

0 comments on commit b0ba7c3

Please sign in to comment.