]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
6 years agodoc: draw date in kresd.8 from NEWS
Daniel Kahn Gillmor [Tue, 20 Nov 2018 18:26:08 +0000 (13:26 -0500)] 
doc: draw date in kresd.8 from NEWS

Ideally, we'll just use the datestamp in the first line of NEWS directly.

if we can't find that, then fall back to the timestamp of the file
(which might be different on different machines because of how git
applies updates).  In any event, choose the datestamp using UTC, to
avoid building a different kresd.8 depending on the TZ of the machine.

6 years agoMerge branch 'qsource-copy' into 'master'
Tomas Krizek [Mon, 19 Nov 2018 17:21:29 +0000 (17:21 +0000)] 
Merge branch 'qsource-copy' into 'master'

daemon/worker: ignore KNOT_ETRAIL when saving source packet

See merge request knot/knot-resolver!705

6 years agodaemon/worker: ignore KNOT_ETRAIL when saving source packet
Grigorii Demidov [Mon, 19 Nov 2018 16:19:48 +0000 (17:19 +0100)] 
daemon/worker: ignore KNOT_ETRAIL when saving source packet

6 years agoMerge !701: CI clang tools: 5.0 -> 7.0
Vladimír Čunát [Thu, 15 Nov 2018 14:03:02 +0000 (14:03 +0000)] 
Merge !701: CI clang tools: 5.0 -> 7.0

6 years agodaemon/main: work around CI lint:c problem
Vladimír Čunát [Thu, 15 Nov 2018 13:50:27 +0000 (14:50 +0100)] 
daemon/main: work around CI lint:c problem

6 years agoCI: update clang tools for lint:*
Vladimír Čunát [Thu, 15 Nov 2018 12:46:51 +0000 (13:46 +0100)] 
CI: update clang tools for lint:*

In particular, in .gitlab-ci.yml I see no reason to hard-code
the version of clang tools - it seems easier to control that
only when generating the image.

6 years agoMerge !696: travis ci: fix OS X build and link with GitLab CI
Vladimír Čunát [Wed, 14 Nov 2018 13:51:52 +0000 (13:51 +0000)] 
Merge !696: travis ci: fix OS X build and link with GitLab CI

Closes #411.

6 years agomodules/nsid: fix linkage on some systems
Vladimír Čunát [Wed, 14 Nov 2018 13:40:39 +0000 (14:40 +0100)] 
modules/nsid: fix linkage on some systems

This is my mistake.  I was convinced this line wasn't needed
and I deleted it before merging the module.
Apparently we still have some deficiencies in the build system,
but let's defer that to migration (to meson probably).

6 years agotravis: silence all notifications
Tomas Krizek [Tue, 6 Nov 2018 17:25:58 +0000 (18:25 +0100)] 
travis: silence all notifications

6 years agoscripts: remove obsolete bootstrap-depends.sh
Tomas Krizek [Wed, 7 Nov 2018 13:20:14 +0000 (14:20 +0100)] 
scripts: remove obsolete bootstrap-depends.sh

6 years agoci: add OSX test via Travis CI API
Tomas Krizek [Wed, 7 Nov 2018 13:19:17 +0000 (14:19 +0100)] 
ci: add OSX test via Travis CI API

6 years agoci/debian-stable: add python requests packakge
Tomas Krizek [Wed, 7 Nov 2018 13:12:35 +0000 (14:12 +0100)] 
ci/debian-stable: add python requests packakge

6 years agotravis: clean up config
Tomas Krizek [Tue, 6 Nov 2018 17:55:15 +0000 (18:55 +0100)] 
travis: clean up config

6 years agotravis: install osx deps
Tomas Krizek [Tue, 6 Nov 2018 17:55:00 +0000 (18:55 +0100)] 
travis: install osx deps

6 years agotravis: osx don't upgrade installed packages
Tomas Krizek [Tue, 6 Nov 2018 17:35:35 +0000 (18:35 +0100)] 
travis: osx don't upgrade installed packages

6 years agotravis: remove unused gitter webhook
Tomas Krizek [Tue, 6 Nov 2018 17:25:33 +0000 (18:25 +0100)] 
travis: remove unused gitter webhook

6 years agoMerge !694: docker: update to debian-based container + CI
Vladimír Čunát [Wed, 14 Nov 2018 13:24:49 +0000 (13:24 +0000)] 
Merge !694: docker: update to debian-based container + CI

Fixes #410.

6 years agoREADME: update docker command to expose ports
Tomas Krizek [Tue, 6 Nov 2018 17:11:05 +0000 (18:11 +0100)] 
README: update docker command to expose ports

6 years agogitlabci: test container in CI
Tomas Krizek [Tue, 6 Nov 2018 15:03:19 +0000 (16:03 +0100)] 
gitlabci: test container in CI

6 years agodoc: remove bootstrap-depends.sh example
Tomas Krizek [Tue, 6 Nov 2018 14:31:23 +0000 (15:31 +0100)] 
doc: remove bootstrap-depends.sh example

6 years agoDockerfile: update image
Tomas Krizek [Tue, 6 Nov 2018 14:32:57 +0000 (15:32 +0100)] 
Dockerfile: update image

- building different version of kresd is not properly supported
  (uses current directory with checked-out code instead of git master)
- based on debian:stable instead of alpine for easier dependency
  resolution
- moved both Dockerfile and config to more appropriate locations

6 years agoMerge !698: http module improvements from cloudflare
Vladimír Čunát [Wed, 14 Nov 2018 11:51:59 +0000 (11:51 +0000)] 
Merge !698: http module improvements from cloudflare

6 years agomodules/http: allow listening on UNIX sockets
Marek Vavruša [Wed, 29 Aug 2018 22:35:20 +0000 (15:35 -0700)] 
modules/http: allow listening on UNIX sockets

6 years agomodules/http: run prometheus collector on leader only
Anbang Wen [Tue, 10 Jul 2018 08:02:59 +0000 (01:02 -0700)] 
modules/http: run prometheus collector on leader only

Metrics are collected and merged in http.prometheus, no need to be run
on every worker.

6 years agomodules/http: added an error handler to HTTP streams
Marek Vavruša [Mon, 2 Apr 2018 23:42:42 +0000 (16:42 -0700)] 
modules/http: added an error handler to HTTP streams

Instead of throwing an error in the HTTP handler, server should log it.
This covers errors like client disconnecting before reading the response
body etc.

6 years agoMerge !697: network: make TCP_BACKLOG_DEFAULT a #define
Vladimír Čunát [Wed, 14 Nov 2018 10:08:52 +0000 (10:08 +0000)] 
Merge !697: network: make TCP_BACKLOG_DEFAULT a #define

6 years agonetwork: make TCP_BACKLOG_DEFAULT a compile time define and set to default
Marek Vavruša [Fri, 6 Apr 2018 16:32:17 +0000 (09:32 -0700)] 
network: make TCP_BACKLOG_DEFAULT a compile time define and set to default

This was previously hardcoded to 16. This makes it at least a compile time
define, with a default of 511 (as that's what Redis and Apache use).

6 years agoMerge !695: two new EDNS modules, new layer
Vladimír Čunát [Tue, 13 Nov 2018 11:54:58 +0000 (11:54 +0000)] 
Merge !695: two new EDNS modules, new layer

6 years agomodules/nsid: new module for +NSID (server-side)
Petr Špaček [Thu, 25 Oct 2018 14:08:54 +0000 (16:08 +0200)] 
modules/nsid: new module for +NSID (server-side)

Minor changes to be blamed on Vladimir.

6 years agomodules/edns_keepalive: new module, loaded by default
Grigorii Demidov [Tue, 13 Nov 2018 10:48:31 +0000 (11:48 +0100)] 
modules/edns_keepalive: new module, loaded by default

Minor changes to be blamed on Vladimir.

6 years agoNEWS: document the module API changes
Vladimír Čunát [Mon, 12 Nov 2018 15:58:41 +0000 (16:58 +0100)] 
NEWS: document the module API changes

... done in the few preceding commits.
I intentionally don't mention ::daemon_context at this point.

6 years agokr_request: move ::has_tls to ::qsource.flags.tls
Vladimír Čunát [Wed, 7 Nov 2018 15:40:56 +0000 (16:40 +0100)] 
kr_request: move ::has_tls to ::qsource.flags.tls

We were quite inconsistent here.

6 years agokr_request: move ::qsource.tcp to ::qsource.flags.tcp
Vladimír Čunát [Mon, 12 Nov 2018 15:37:07 +0000 (16:37 +0100)] 
kr_request: move ::qsource.tcp to ::qsource.flags.tcp

6 years agoprepare for adding EDNS modules
Grigorii Demidov [Wed, 7 Nov 2018 10:41:23 +0000 (11:41 +0100)] 
prepare for adding EDNS modules

- answer_finalize: new layer
- kr_request: keep ::qsource.packet beyond the begin phase
- kr_request: add ::daemon_context

6 years agoMerge !693: policy docs improvements
Vladimír Čunát [Tue, 6 Nov 2018 14:03:40 +0000 (14:03 +0000)] 
Merge !693: policy docs improvements

6 years agopolicy docs: move RFC-mandated defaults together
Vladimír Čunát [Tue, 6 Nov 2018 12:00:13 +0000 (13:00 +0100)] 
policy docs: move RFC-mandated defaults together

6 years agopolicy docs: add section about combining DNS trees
Vladimír Čunát [Tue, 6 Nov 2018 10:30:13 +0000 (11:30 +0100)] 
policy docs: add section about combining DNS trees

6 years agoMerge branch 'release-3-1-0' into 'master' v3.1.0
Tomas Krizek [Fri, 2 Nov 2018 15:29:27 +0000 (15:29 +0000)] 
Merge branch 'release-3-1-0' into 'master'

release 3.1.0

See merge request knot/knot-resolver!692

6 years agorelease 3.1.0
Tomas Krizek [Fri, 2 Nov 2018 11:42:43 +0000 (12:42 +0100)] 
release 3.1.0

6 years agoMerge branch 'ns-cycled' into 'master'
Tomas Krizek [Fri, 2 Nov 2018 15:26:56 +0000 (15:26 +0000)] 
Merge branch 'ns-cycled' into 'master'

lib/zonecut: avoid one kind of NS dependency cycles

Closes #374

See merge request knot/knot-resolver!690

6 years agolib/zonecut: verbose output tweaks
Vladimír Čunát [Thu, 1 Nov 2018 10:24:50 +0000 (11:24 +0100)] 
lib/zonecut: verbose output tweaks

6 years agovarious nitpicks around the parent commit
Vladimír Čunát [Wed, 31 Oct 2018 13:59:20 +0000 (14:59 +0100)] 
various nitpicks around the parent commit

6 years agolib/zonecut: avoid one kind of NS dependency cycles
Vladimír Čunát [Wed, 17 Oct 2018 17:00:53 +0000 (19:00 +0200)] 
lib/zonecut: avoid one kind of NS dependency cycles

The problem here was that we need to know which addresses are timed-out
(and not to be re-probed) much earlier than we do NS selection ATM -
that's because under some circumstances it affects the depth of NS
zone cut that we choose, i.e. if all addresses in a certain zone cut are
"bad" in a certain sense, we need to use a zone cut closer to the root,
because otherwise we'd get into a dependency cycle.

6 years agoMerge branch 'packaging-update' into 'master'
Tomas Krizek [Fri, 2 Nov 2018 13:50:29 +0000 (13:50 +0000)] 
Merge branch 'packaging-update' into 'master'

packaging: updates

See merge request knot/knot-resolver!676

6 years agodistro/tests: remove Fedora27
Tomas Krizek [Fri, 2 Nov 2018 12:57:16 +0000 (13:57 +0100)] 
distro/tests: remove Fedora27

6 years agodistro/tests: add Fedora29
Tomas Krizek [Fri, 2 Nov 2018 11:01:43 +0000 (12:01 +0100)] 
distro/tests: add Fedora29

6 years agodistro/tests: add openSUSE tests
Tomas Krizek [Mon, 1 Oct 2018 14:51:10 +0000 (16:51 +0200)] 
distro/tests: add openSUSE tests

6 years agodistro/tests: add Ubuntu 18.10
Tomas Krizek [Wed, 24 Oct 2018 11:45:10 +0000 (13:45 +0200)] 
distro/tests: add Ubuntu 18.10

6 years agodistro/rpm: support openSUSE
Tomas Krizek [Mon, 1 Oct 2018 12:05:49 +0000 (14:05 +0200)] 
distro/rpm: support openSUSE

6 years agodistro/deb: update libkres8.symbols
Tomas Krizek [Fri, 14 Sep 2018 12:22:06 +0000 (14:22 +0200)] 
distro/deb: update libkres8.symbols

6 years agodistro/systemd: remove obsolete section from kresd.target
Tomas Krizek [Wed, 29 Aug 2018 15:21:39 +0000 (17:21 +0200)] 
distro/systemd: remove obsolete section from kresd.target

6 years agoMerge branch 'fixup-docker' into 'master'
Tomas Krizek [Fri, 2 Nov 2018 13:32:02 +0000 (13:32 +0000)] 
Merge branch 'fixup-docker' into 'master'

lib/generic/queue: remove a ssize_t cast

See merge request knot/knot-resolver!691

6 years agolib/generic/queue: remove a ssize_t cast
Vladimír Čunát [Fri, 2 Nov 2018 11:30:32 +0000 (12:30 +0100)] 
lib/generic/queue: remove a ssize_t cast

The Alpine-based Docker image wouldn't compile.
I can't see a reason for the cast now - it's a sum of compile-time
constants, and very unlikely to overflow on changes in code or platform.

6 years agoMerge branch 'cache-clear-nitpicks' into 'master'
Petr Špaček [Wed, 31 Oct 2018 15:16:46 +0000 (15:16 +0000)] 
Merge branch 'cache-clear-nitpicks' into 'master'

cache.clear('name') edge cases

Closes #401

See merge request knot/knot-resolver!670

6 years agocache.clear('name'): fix a small GC race
Vladimír Čunát [Wed, 12 Sep 2018 06:51:50 +0000 (08:51 +0200)] 
cache.clear('name'): fix a small GC race

Thanks to Marek for noticing it.

6 years agocache.clear('name'): correct the 'not_apex" warning
Vladimír Čunát [Tue, 11 Sep 2018 14:14:07 +0000 (16:14 +0200)] 
cache.clear('name'): correct the 'not_apex" warning

It fired also when the name didn't contain the final dot.

6 years agokres.str2dname: perform lower-casing
Vladimír Čunát [Tue, 11 Sep 2018 14:07:22 +0000 (16:07 +0200)] 
kres.str2dname: perform lower-casing

We use it as relatively high-level function, often on user-input names,
so it seems suitable that it does convert the case.
This fixes cache.clear('Example.Org.'), and probably also negative trust
anchors and policy uses.

6 years agoMerge branch 'doc-tty' into 'master'
Tomas Krizek [Tue, 30 Oct 2018 15:51:21 +0000 (15:51 +0000)] 
Merge branch 'doc-tty' into 'master'

docs for daemon: better visibility for control sockets

See merge request knot/knot-resolver!682

6 years agodaemon/README.rst: add warning about net.tcp_pipeline()
Tomas Krizek [Mon, 29 Oct 2018 15:18:56 +0000 (16:18 +0100)] 
daemon/README.rst: add warning about net.tcp_pipeline()

6 years agodaemon/README.rst: split systemd integration into appropriate sections
Tomas Krizek [Mon, 29 Oct 2018 14:10:57 +0000 (15:10 +0100)] 
daemon/README.rst: split systemd integration into appropriate sections

6 years agodaemon/README.rst: fix spelling erros
Tomas Krizek [Tue, 23 Oct 2018 14:28:47 +0000 (16:28 +0200)] 
daemon/README.rst: fix spelling erros

6 years agodaemon/README.rst: update doc with systemd integration info
Tomas Krizek [Tue, 23 Oct 2018 14:21:34 +0000 (16:21 +0200)] 
daemon/README.rst: update doc with systemd integration info

6 years agodocs for daemon: better visibility for control sockets
Vladimír Čunát [Fri, 12 Oct 2018 12:18:43 +0000 (14:18 +0200)] 
docs for daemon: better visibility for control sockets

- promote the part into a section
- move it right after the section about interactive CLI
- minor reformulations, location of the sockets, etc.
- fix location of the daemon-supervised anchor

6 years agoMerge branch 'task_step_split' into 'master'
Petr Špaček [Wed, 24 Oct 2018 15:49:09 +0000 (15:49 +0000)] 
Merge branch 'task_step_split' into 'master'

daemon/worker: minor refactoring of qr_task_step

See merge request knot/knot-resolver!687

6 years agodaemon/worker: minor refactoring of qr_task_step
Grigorii Demidov [Tue, 23 Oct 2018 12:40:14 +0000 (14:40 +0200)] 
daemon/worker: minor refactoring of qr_task_step

6 years agoMerge branch 'tcp-incom-timeout' into 'master'
Grigorii Demidov [Mon, 22 Oct 2018 14:55:41 +0000 (14:55 +0000)] 
Merge branch 'tcp-incom-timeout' into 'master'

daemon: changes in TCP connection timeouting

See merge request knot/knot-resolver!686

6 years agodaemon: TCP connection timeouting has changed; connection was closed after peer's...
Grigorii Demidov [Mon, 22 Oct 2018 08:48:51 +0000 (10:48 +0200)] 
daemon: TCP connection timeouting has changed; connection was closed after peer's inactivity before, now it is closed after incativity in both directions (peer->kresd, kresd->peer); prevents connection from closing before answer sent to client

6 years agoMerge !681: various nitpicks, see commits for details
Vladimír Čunát [Tue, 16 Oct 2018 14:38:03 +0000 (14:38 +0000)] 
Merge !681: various nitpicks, see commits for details

6 years agocache: avoid some crashes
Vladimír Čunát [Wed, 10 Oct 2018 15:00:07 +0000 (17:00 +0200)] 
cache: avoid some crashes

It's actually possible to start queries without any cache open,
e.g. add `resolve('.', kres.type.DNSKEY)` into your configuration.
If that happens, avoid the cache module dereferencing a NULL pointer.

6 years agotrie docs nitpick
Vladimír Čunát [Fri, 5 Oct 2018 14:36:10 +0000 (16:36 +0200)] 
trie docs nitpick

6 years agotrie_it nitpick: reduce the initial stack size
Vladimír Čunát [Wed, 19 Sep 2018 14:57:24 +0000 (16:57 +0200)] 
trie_it nitpick: reduce the initial stack size

Using 2kB as start is a bit too much, and it was showing as 0.5% CPU
on malloc() called during trie_it_begin().  Let's start at 0.5 kB,
as it can grow anyway (only negligible in profile now).

6 years agodoc: fix a typo :-)
Vladimír Čunát [Fri, 14 Sep 2018 11:02:56 +0000 (13:02 +0200)] 
doc: fix a typo :-)

6 years agoMerge branch 'respdiff-tls-256' into 'master'
Tomas Krizek [Tue, 16 Oct 2018 10:33:20 +0000 (10:33 +0000)] 
Merge branch 'respdiff-tls-256' into 'master'

ci: use 256 jobs for TLS forward test

See merge request knot/knot-resolver!683

6 years agoci: use 256 jobs for TLS forward test
Tomas Krizek [Tue, 16 Oct 2018 10:28:11 +0000 (12:28 +0200)] 
ci: use 256 jobs for TLS forward test

6 years agoMerge !675: daemon: first part of refactoring
Vladimír Čunát [Mon, 15 Oct 2018 13:08:38 +0000 (13:08 +0000)] 
Merge !675: daemon: first part of refactoring

- mainly the daemon/session.* files are separated,
  moving lots of logic from daemon/worker.*;
- lib/generic/queue.* are added;
- verbose logging gets different IDs;
- various minor changes around.

6 years agodaemon/worker: delete unused field in qr_task
Grigorii Demidov [Mon, 15 Oct 2018 09:28:07 +0000 (11:28 +0200)] 
daemon/worker: delete unused field in qr_task

6 years agodoc: add missing link to queue
Vladimír Čunát [Mon, 15 Oct 2018 09:24:26 +0000 (11:24 +0200)] 
doc: add missing link to queue

6 years agodaemon/session.c nitpick: add missing copyright header
Vladimír Čunát [Fri, 12 Oct 2018 16:01:00 +0000 (18:01 +0200)] 
daemon/session.c nitpick: add missing copyright header

6 years agoUnificate handling of TCP timeouts for input and output connections; avoid redundant...
Grigorii Demidov [Thu, 11 Oct 2018 15:30:10 +0000 (17:30 +0200)] 
Unificate handling of TCP timeouts for input and output connections; avoid redundant code; bugfixing

6 years agolib/generic/queue: add iterators
Vladimír Čunát [Wed, 10 Oct 2018 11:24:35 +0000 (13:24 +0200)] 
lib/generic/queue: add iterators

The typing around queue_it_begin() isn't ideal,
but I'm unable to come with anything better.
I'm really missing generics for these things.

6 years agotests_trie: detect the bug fixed in the parent commit
Vladimír Čunát [Tue, 9 Oct 2018 13:44:30 +0000 (15:44 +0200)] 
tests_trie: detect the bug fixed in the parent commit

6 years agotrie_get_leq(): fix confusion in char signedness in keys
Vladimír Čunát [Tue, 9 Oct 2018 13:09:44 +0000 (15:09 +0200)] 
trie_get_leq(): fix confusion in char signedness in keys

6 years agologging ID nitpicks
Vladimír Čunát [Tue, 9 Oct 2018 09:38:55 +0000 (11:38 +0200)] 
logging ID nitpicks

- align the numbers to 5+2 digits (pad with zeros), and use unsigned
- add numbers for the '(NOT) classified as SECURE' message

6 years agodaemon, lib: use query uid in log instead of msg id
Grigorii Demidov [Mon, 8 Oct 2018 14:45:55 +0000 (16:45 +0200)] 
daemon, lib: use query uid in log instead of msg id

6 years agodaemon/session nitpick: avoid a warning
Vladimír Čunát [Thu, 4 Oct 2018 12:43:54 +0000 (14:43 +0200)] 
daemon/session nitpick: avoid a warning

lint:clang-scan-build reported:
> warning: The code calls sizeof() on a pointer type.
> This can produce an unexpected result
but in our case it's intentional.
(Yes, using pointers as keys in trie isn't very pretty.)

6 years agodaemon/worker nitpick: revert stats.dropped accounting
Vladimír Čunát [Thu, 4 Oct 2018 09:55:59 +0000 (11:55 +0200)] 
daemon/worker nitpick: revert stats.dropped accounting

Only count incoming requests into this,
as before "some simplifications" commit.

6 years agodaemon/worker: avoid usage of qr_tasklist in struct request_ctx as it is redundant...
Grigorii Demidov [Thu, 4 Oct 2018 12:24:46 +0000 (14:24 +0200)] 
daemon/worker: avoid usage of qr_tasklist in struct request_ctx as it is redundant; use direct pointer to task instead

6 years agodaemon: bugfixes & improvements
Grigorii Demidov [Wed, 3 Oct 2018 12:48:23 +0000 (14:48 +0200)] 
daemon: bugfixes & improvements

6 years agodaemon/session: migrate from array_t to trie_t & queue_t; daemon/worker: some simplif...
Grigorii Demidov [Thu, 27 Sep 2018 14:56:02 +0000 (16:56 +0200)] 
daemon/session: migrate from array_t to trie_t & queue_t; daemon/worker: some simplifications

6 years agolib/generic/trie: add some tests
Vladimír Čunát [Tue, 25 Sep 2018 10:50:55 +0000 (12:50 +0200)] 
lib/generic/trie: add some tests

There are some (other) tests in knot-dns repo,
but having some more shouldn't hurt, especially as
we've added some new functions now.

6 years agolib/generic/queue: add some tests
Vladimír Čunát [Tue, 25 Sep 2018 10:37:45 +0000 (12:37 +0200)] 
lib/generic/queue: add some tests

6 years agolib/generic/queue: a new efficient structure
Vladimír Čunát [Fri, 21 Sep 2018 18:33:31 +0000 (20:33 +0200)] 
lib/generic/queue: a new efficient structure

It's focused on FIFO queue usage.

FIXME: unit tests

6 years agolib/generic/lru: doc nitpicks
Vladimír Čunát [Mon, 24 Sep 2018 15:16:36 +0000 (17:16 +0200)] 
lib/generic/lru: doc nitpicks

6 years agolib/generic/trie: doc nitpick, bump copyright years
Vladimír Čunát [Mon, 24 Sep 2018 14:37:36 +0000 (16:37 +0200)] 
lib/generic/trie: doc nitpick, bump copyright years

6 years agotrie_get_first(), trie_del_first(): new API
Vladimír Čunát [Fri, 21 Sep 2018 14:10:35 +0000 (16:10 +0200)] 
trie_get_first(), trie_del_first(): new API

This prompted a slight reorganization inside trie.c

6 years agotests/deckard: sync to master
Grigorii Demidov [Thu, 20 Sep 2018 15:47:06 +0000 (17:47 +0200)] 
tests/deckard: sync to master

6 years agodaemon/session: fixes for bugs revealed by transport tests
Grigorii Demidov [Thu, 20 Sep 2018 13:01:44 +0000 (15:01 +0200)] 
daemon/session: fixes for bugs revealed by transport tests

6 years agodaemon/session: combine _new() and _set_handle()
Vladimír Čunát [Wed, 19 Sep 2018 18:58:56 +0000 (20:58 +0200)] 
daemon/session: combine _new() and _set_handle()

They don't seem to be useful individually, so why not clean up.

6 years agodaemon nitpick cleanups
Vladimír Čunát [Wed, 19 Sep 2018 18:50:29 +0000 (20:50 +0200)] 
daemon nitpick cleanups

- Some (potentially) unused vars were left behind.
- The two on_* functions are identical except for the uv types passed,
  and those are surely the same in the part we use, but it's not worth
  to deduplicate when these functions are only two and so simple.
- lint:c was complaining about the uv_tcp_t malloc().

6 years agodaemon/engine: move defines from header to respective *.c
Vladimír Čunát [Wed, 19 Sep 2018 18:29:00 +0000 (20:29 +0200)] 
daemon/engine: move defines from header to respective *.c

Also don't allocate much memory for cookies if we compile them out.