Adrien Béraud
c4e75ae66c
update copyright year
2025-05-22 19:07:32 -04:00
Adrien Beraud
b2860e1731
proxy client: provide result for pushNotificationReceived
2025-02-20 14:13:16 -05:00
Adrien Béraud
c7ba7f6703
utils: use fmt::format for time
2024-11-20 11:40:12 -05:00
Adrien Beraud
3f27cd7069
proxy client: resubscribe on token change
2024-11-18 11:07:55 -05:00
Adrien Beraud
b222efe638
proxy client: pass push parameters to constructor
2024-11-18 11:07:55 -05:00
Adrien Beraud
950194f68e
proxy client: allow to configure user agent for proxy
2024-11-04 16:34:02 -05:00
Adrien Béraud
5a2a20a32f
http: migrate from http-parser to llhttp
2024-05-31 06:58:09 -04:00
Lanius-collaris
318d02c55a
update http, dht_proxy_client
...
http: simplify Connection::async_connect()
dht_proxy_client: add listenKeepIdle setting
2024-05-25 23:57:52 -04:00
Lanius-collaris
ac0ea6ac57
proxy client: decrease the frequency of keepalive for listen op
2024-05-25 23:57:52 -04:00
Adrien Beraud
7f70fcd316
proxy client: cancel http request on listen cancel
2024-04-06 18:24:16 -04:00
Adrien Beraud
903eba6a31
proxy client: cancel resolver on stop
2024-03-22 13:49:44 -04:00
Adrien Béraud
7ca39b4a20
http: use OCSP_check_validity to check OCSP validity
2024-03-17 15:56:48 -04:00
Adrien Béraud
23d07dae38
rng: drop custom random_device implementation for MinGW/Windows
...
MinGW now has std::random_device support on Windows:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85494
2023-12-10 15:18:59 -05:00
Adrien Béraud
13194b66d3
proxy client: retry permanent put after reconnect
2023-11-02 15:58:11 -04:00
Adrien Béraud
2ed40aeefe
proxy client: use [[maybe_unused]]
2023-08-30 17:58:45 -04:00
Adrien Béraud
bb61b8468b
proxy client: implement OnPublicAddressChanged
2023-08-30 17:58:45 -04:00
Adrien Béraud
fafd2f0233
update copyright year
2023-06-02 23:16:04 -04:00
Adrien Béraud
2cb57251a1
proxy client: protect resolver
2023-01-25 19:53:53 -05:00
Adrien Béraud
6c61ac53c4
proxy client: cleanup
2022-12-30 20:42:08 -05:00
Sébastien Blin
d6a99d0edd
proxyclient: add possibility to set the platform
...
This allow android to change the platform to "unifiedpush".
2022-11-17 11:46:09 -05:00
Sébastien Blin
2e79ee4f11
dht_proxy_client: fix not contextually convertible to 'bool' error
...
The current master is broken with clang, this fix the issue.
2022-08-11 14:30:59 -04:00
Sébastien Blin
5399dbdfbc
proxy_client: reconnect account if local ip changes
...
When switching between two network interfaces, local address will
change but not the public ip. This generally cause the client to
not correctly updates its candidates.
In this patch, we inject in the proxy client the local candidates
and use it to check if the network changed.
2022-08-11 12:32:44 -04:00
kkostiuk
0f8d891476
iOS: drop support for voip notifications
2022-07-25 15:26:57 -04:00
Adrien Béraud
ba1b3c26c5
procy client: use new routes
2022-07-17 13:00:05 -04:00
Adrien Béraud
633a03d76a
ios: support multiple notification types
...
- VOIP notifications for iOS < 14.5
- alert and background notifications for iOS >= 14.5
2022-06-30 15:44:16 -04:00
Adrien Béraud
a22566599c
proxy client: fix building Listener map
2022-03-29 14:47:42 -04:00
Adrien Béraud
9c2268fa41
fix various cppcheck warnings/errors
2022-03-29 10:15:00 -04:00
Adrien Béraud
c59f951e5a
update copyright
2022-03-10 19:51:25 -05:00
Sébastien Blin
dbbfdaab0f
proxyclient: onConnectedCallbacks must be launched if started by notif
2021-10-27 13:45:30 -04:00
Sébastien Blin
26b71ab993
proxyclient: do not play with stop when resubscribing
...
At this point we do not care for the request. Subscribes are
instantaneous, so the request will be terminated at this point.
Changing the stop status can cause some push notifications to be
dropped if coming at this moment.
2021-09-10 10:21:31 -04:00
Adrien Béraud
0c00544798
remove embedded argon2, HTTP_PARSER_FORK
2021-06-09 13:57:10 -04:00
Adrien Béraud
a178a8f820
dht, dhtrunner: add shutdown stop argument
2021-05-31 14:43:57 -04:00
Adrien Béraud
40fdd04cb3
dht: cleanup handling of onConnectCallback
2021-04-16 15:13:07 -04:00
Adrien Béraud
a24dedd225
proxy client: move callbacks to lambda
2021-04-16 15:04:19 -04:00
Adrien Béraud
ae2445fd07
proxy client: schedule connectCallbacks in callback queue
2021-04-16 15:01:23 -04:00
Adrien Béraud
7ba53cb4b3
proxy client: use unique_ptr for timers
2021-04-16 15:00:48 -04:00
Adrien Béraud
d3fc75589f
dht: add onConnect callback
2021-04-15 12:36:03 -04:00
Adrien Béraud
3098439db2
proxy client: set CA for every request
2020-11-24 15:22:14 -05:00
Sébastien Blin
d1000635dd
dht_proxy_client: do not launch loopSignal_ while searchLock_ is locked
2020-10-08 18:34:21 -04:00
Sébastien Blin
23a75a3f50
proxyclient: do not lock loopSignal_
2020-09-15 10:54:44 -04:00
Sébastien Blin
b41f5b04f5
proxyclient: only restart listeners when connected
...
restartListeners() must be called only when the proxy is connected. Else, the
client will receive a lot of http errors
2020-06-29 15:18:58 -04:00
Sébastien Blin
f3100a6752
proxyclient: avoid to generate tokens with \0
2020-05-20 12:23:59 -04:00
Adrien Béraud
7791163d49
proxy: receive values in blocks
2020-01-22 16:02:26 -05:00
Adrien Béraud
3490b19fe3
proxy client: cleanup
2020-01-22 13:15:37 -05:00
Adrien Béraud
4a20814d59
proxy client: let the server choose the value id
2020-01-22 13:15:37 -05:00
Adrien Béraud
7764620460
proxy client: fix warning
2020-01-19 14:32:57 -05:00
Adrien Béraud
900655b11f
dht: give current time through periodic
2020-01-18 13:58:22 -05:00
Adrien Béraud
616d6fe4b8
update copyright date
2020-01-03 15:14:32 -05:00
Adrien Béraud
dc2f354652
proxy: use timestamps to handle reordered notifications
2020-01-03 14:47:22 -05:00
Sébastien Blin
87041e301f
proxyclient: refresh put on restartListeners
...
There is no need to check if the put is ok or not before refreshing it. Indeed,
the first successful put will make the ok flag to true. But, if an expiration
is missed (when not connected for example), the put will not be refreshed when
the connectivity will change (moreover, server and client can have different
timeouts).
2020-01-03 11:39:05 -05:00