Joachim Bauch
7681e26fbb
Use publisher/subscriber objects as map keys.
2020-10-26 09:34:11 +01:00
Joachim Bauch
644d9a1737
Include load in stats response.
2020-10-15 13:27:08 +02:00
Joachim Bauch
76f327b919
Log session id when creating publish/subscriber.
2020-09-16 16:51:11 +02:00
Joachim Bauch
612b1d7217
Mark session as used on resume.
2020-09-16 10:11:52 +02:00
Joachim Bauch
d437dbbc0e
Mark session as used when connection is closed to prevent from timing out too early.
2020-09-16 10:08:46 +02:00
Joachim Bauch
1e11eac284
proxy: Check complete session id when resuming.
2020-09-07 09:10:33 +02:00
Joachim Bauch
bde0301637
proxy: Generate random session hash keys.
...
This is to ensure that session ids are only valid until the proxy is restarted.
2020-09-07 09:01:34 +02:00
Joachim Bauch
744b514e9f
Support multiple token key formats in proxy configurations.
2020-08-31 17:23:47 +02:00
Joachim Bauch
18bfb0daa1
Update logging flags.
...
Timestamp already enabled by etcd logger, so only add filename.
2020-08-31 15:51:53 +02:00
Joachim Bauch
804e558e96
Switch to builtin "context" package now that we can assume Go 1.7
2020-08-31 13:58:28 +02:00
Joachim Bauch
c6892dcb2a
Update config parameter name to match other options.
2020-08-28 17:09:57 +02:00
Joachim Bauch
66d860bd79
Add support for fetching proxy tokens from etcd cluster.
2020-08-28 17:09:57 +02:00
Joachim Bauch
85d6726d59
proxy: Prepare for different token storages.
2020-08-28 10:31:11 +02:00
Joachim Bauch
ea74a54d11
Select proxy based on country of publisher (if known).
...
The connections that have been sorted by load are also sorted by country
of publisher and continent of publisher, e.g. for worldwide proxies, the
ones closest to the publisher will be preferred.
2020-08-13 13:17:09 +02:00
Joachim Bauch
d9d11b58e1
Shutdown a proxy gracefully on SIGUSR1.
...
No new publishers will be created by the proxy, existing publishers can
still be subscribed. After all clients have disconnected, the process
will terminate.
2020-08-13 13:17:09 +02:00
Joachim Bauch
b7c258b459
Add proxy service implementation.
2020-08-13 13:17:08 +02:00