From 0bc7c9d057d137b72c54d2da7fca522d36128f6a Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 7 Jun 2017 01:39:08 -0500 Subject: queue: entirely rework parallel system This removes our dependency on padata and moves to a different mode of multiprocessing that is more efficient. This began as Samuel Holland's GSoC project and was gradually reworked/redesigned/rebased into this present commit, which is a combination of his initial contribution and my subsequent rewriting and redesigning. --- src/messages.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/messages.h') diff --git a/src/messages.h b/src/messages.h index 2c0658d..490a773 100644 --- a/src/messages.h +++ b/src/messages.h @@ -49,8 +49,9 @@ enum limits { MAX_PEERS_PER_DEVICE = 1 << 20, KEEPALIVE_TIMEOUT = 10 * HZ, MAX_TIMER_HANDSHAKES = (90 * HZ) / REKEY_TIMEOUT, - MAX_QUEUED_INCOMING_HANDSHAKES = 4096, - MAX_QUEUED_OUTGOING_PACKETS = 1024 + MAX_QUEUED_INCOMING_HANDSHAKES = 4096, /* TODO: replace this with DQL */ + MAX_STAGED_PACKETS = 1024, + MAX_QUEUED_PACKETS = 1024 /* TODO: replace this with DQL */ }; enum message_type { -- cgit v1.2.3-59-g8ed1b