summaryrefslogtreecommitdiff
path: root/proto/rpki/transport.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2021-11-17 21:34:54 +0100
committerMaria Matejka <mq@ucw.cz>2021-11-22 19:05:44 +0100
commit3fd1f46184aa74d8ab7ed65c9ab6954f7e49d309 (patch)
treeba698f8c7fe0eb25ecee3be187957b0275aa47ec /proto/rpki/transport.c
parent20ace7f2e61bc6881e4ea22c63f0d0eb9a1dd1a2 (diff)
RPKI has its own loop
Diffstat (limited to 'proto/rpki/transport.c')
-rw-r--r--proto/rpki/transport.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/proto/rpki/transport.c b/proto/rpki/transport.c
index a1ac7587..b52495dc 100644
--- a/proto/rpki/transport.c
+++ b/proto/rpki/transport.c
@@ -85,6 +85,7 @@ rpki_tr_open(struct rpki_tr_sock *tr)
sk->rbsize = RPKI_RX_BUFFER_SIZE;
sk->tbsize = RPKI_TX_BUFFER_SIZE;
sk->tos = IP_PREC_INTERNET_CONTROL;
+ sk->flags |= SKF_THREAD;
if (ipa_zero(sk->daddr) && sk->host)
{
@@ -119,6 +120,7 @@ rpki_tr_close(struct rpki_tr_sock *tr)
if (tr->sk)
{
+ sk_stop(tr->sk);
rfree(tr->sk);
tr->sk = NULL;
}