1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Example configuration file for network-protocol
# Server-specific configuration (used by service::daemon)
[]
= "127.0.0.1:9000"
= 32 # messages queued per connection before reads pause
= 5000 # milliseconds, for each handshake step
= 15000 # milliseconds
= 10000 # milliseconds
= 1000 # connections over this are closed on accept
# Client-specific configuration (used by service::client::Client)
[]
= "127.0.0.1:9000"
= 5000 # milliseconds
= 3000 # milliseconds, for each send
= 30000 # milliseconds
= 15000 # milliseconds
# Deprecated in 1.3.0: Client never reconnects, so these have no effect.
# They are optional and can be removed.
= true
= 3
= 1000 # milliseconds
# Transport configuration
# Deprecated in 1.3.0: nothing reads these fields. The packet codec always
# enforces a 16 MiB payload limit and the built-in services always encrypt.
# The whole table is optional and can be removed.
[]
= false
= true
= 16777216 # 16 MB in bytes
= 6
# Logging configuration
# Loaded and validated with the rest of the file, but not read by the
# library's logging setup, which takes a utils::logging::LogConfig.
[]
= "network-protocol"
= "info" # options: trace, debug, info, warn, error
= true
= false
= "" # optional; may be removed
= false