handshake_dir_sync #2

Manually merged
luca.fulchir merged 0 commits from handshake_dir_sync into main 2023-06-28 16:56:32 +00:00
Owner

Finally broken and fixed enough stuff that we have a working handshake between client and server!

Finally broken and fixed enough stuff that we have a working handshake between client and server!
luca.fulchir added 33 commits 2023-06-17 09:38:04 +00:00
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
This will let us have a lot less locking.
We can do better in the future with ebpf and pinning connection to
a specific CPU with multiple listen() points on the same address,
but good enough for now

Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
No more Arc<Connection>, Rc<Connection> is better on the same thread.
Track the thread number so we can generate the correct connection IDs

Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
We use :💍:rand::SystemRandom, but we need to wrap it
for a couple of traits needed by ::x25519_dalek

Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
it was kinda stupid to keep the keys *after* the addresses
but have the addresses keep an index to the array of pubkeys anyway

Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
we have a Quick but partial shutdown, which lets the async "threads"
work in the background and shutdown after a bit more time

and the graceful/full shutdown, which waits for everything.

Unfortunately `Drop` can't manage async and blocks everything,
no way to yeld either, so if we only have a thread
we would deadlock if we tried to stop things gracefully

Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
luca.fulchir added this to the Handshakes Support milestone 2023-06-17 09:38:55 +00:00
luca.fulchir added this to the Kanboard project 2023-06-17 09:38:59 +00:00
luca.fulchir added the
enhancement
label 2023-06-17 09:39:19 +00:00
luca.fulchir added 1 commit 2023-06-17 12:07:31 +00:00
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
luca.fulchir self-assigned this 2023-06-17 12:13:11 +00:00
luca.fulchir added a new dependency 2023-06-20 16:26:30 +00:00
Member

LGTM

LGTM
luca.fulchir closed this pull request 2023-06-28 16:54:19 +00:00
luca.fulchir reopened this pull request 2023-06-28 16:56:31 +00:00
luca.fulchir manually merged commit d6825980fd into main 2023-06-28 16:56:32 +00:00
Sign in to join this conversation.
No description provided.