summaryrefslogtreecommitdiff
path: root/proto/rpki/transport.c
diff options
context:
space:
mode:
Diffstat (limited to 'proto/rpki/transport.c')
-rw-r--r--proto/rpki/transport.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/proto/rpki/transport.c b/proto/rpki/transport.c
index a1ac7587..26609764 100644
--- a/proto/rpki/transport.c
+++ b/proto/rpki/transport.c
@@ -85,6 +85,8 @@ 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;
+ sk->loop = cache->p->p.loop;
if (ipa_zero(sk->daddr) && sk->host)
{
@@ -119,6 +121,7 @@ rpki_tr_close(struct rpki_tr_sock *tr)
if (tr->sk)
{
+ sk_stop(tr->sk);
rfree(tr->sk);
tr->sk = NULL;
}