diff options
author | Iwan Timmer <irtimmer@gmail.com> | 2018-04-22 15:23:45 +0200 |
---|---|---|
committer | Iwan Timmer <irtimmer@gmail.com> | 2018-06-11 20:17:51 +0200 |
commit | 98767d75d7cd50bb578f50b8fc902f8ef1a8f997 (patch) | |
tree | 6653612bd870a3f78c145c2a62c2a83e0c8721da /src/basic | |
parent | pid1: do not reset subtree_control on already-existing units with delegation (diff) | |
download | systemd-98767d75d7cd50bb578f50b8fc902f8ef1a8f997.tar.xz systemd-98767d75d7cd50bb578f50b8fc902f8ef1a8f997.zip |
resolved: longlived TCP connections
Keep DNS over TCP connection open until it's closed by the server or after a timeout.
Diffstat (limited to 'src/basic')
-rw-r--r-- | src/basic/ordered-set.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/basic/ordered-set.h b/src/basic/ordered-set.h index 3920ffdbf1..1943d06b4f 100644 --- a/src/basic/ordered-set.h +++ b/src/basic/ordered-set.h @@ -48,6 +48,14 @@ static inline bool ordered_set_iterate(OrderedSet *s, Iterator *i, void **value) return ordered_hashmap_iterate((OrderedHashmap*) s, i, value, NULL); } +static inline void* ordered_set_remove(OrderedSet *s, void *p) { + return ordered_hashmap_remove((OrderedHashmap*) s, p); +} + +static inline void* ordered_set_steal_first(OrderedSet *s) { + return ordered_hashmap_steal_first((OrderedHashmap*) s); +} + int ordered_set_consume(OrderedSet *s, void *p); int ordered_set_put_strdup(OrderedSet *s, const char *p); int ordered_set_put_strdupv(OrderedSet *s, char **l); |