Adrien Béraud
6158751a32
network engine: auth success in case of refresh
2020-06-12 02:51:08 -04:00
Adrien Béraud
4c7d126782
network engine: fix sendError with non-default netId
2020-06-11 15:10:48 -04:00
Adrien Béraud
a2afb5bb31
network engine: send confirmation for value update
2020-05-24 00:20:27 -04:00
Sébastien Blin
28b5893239
listener: fully migrate to requests
...
This patch migrates tellListenerRefreshed and tellListenerExpired
to the new behavior
2020-05-05 10:38:03 -04:00
Adrien Béraud
c754b5cfce
update to version 2.1.0
2020-04-30 14:58:25 -04:00
Adrien Béraud
b0c1249710
network engine: check for logger
2020-04-29 20:23:19 -04:00
Sébastien Blin
8c4a894f93
misc: replace TransId to Tid
2020-04-28 13:55:29 -04:00
Sébastien Blin
dd3de412fb
dht: move updateValues logic into network_engine
2020-04-28 13:55:29 -04:00
Sébastien Blin
4ad5e6c9ba
misc: clean
2020-04-28 13:55:29 -04:00
Sébastien Blin
7c14ea1730
network_engine: fix pack for sendUpdateValues
2020-04-28 13:55:29 -04:00
Sébastien Blin
7bf9f861a5
dht: send update values for listeners
2020-04-28 13:55:29 -04:00
Sébastien Blin
4cf5c87761
network_engin: move to pack(socket)
2020-04-28 13:55:29 -04:00
Sébastien Blin
e1c6fec581
dht: starts to add update and version support
2020-04-28 13:55:29 -04:00
Sébastien Blin
31da5b91fa
[WIP]net: add updateValues to replace Listen operations
...
Actually, packets are not retransmitted for listen operations. This
leads to some problems when they are already several values present
at one hash. Ideally, packets should be transmitted inside a request
to avoid packet loss and get all datas.
This patch breaks the compatibility with previous versions
2020-04-28 13:55:29 -04:00
Adrien Béraud
01bcb1a750
network engine: completely remove TransId
2020-04-24 18:46:46 -04:00
Adrien Béraud
c92f553a24
network engine: retransmit value parts
2020-03-30 17:54:50 -04:00
Adrien Béraud
95028e3770
dht: always use pseudo-RNG for non-critical random numbers
2020-02-07 00:36:42 -05:00
Adrien Béraud
707fb39975
net: fix sending query in sendGetValues
2020-01-20 12:15:33 -05:00
Adrien Béraud
dc46c2274c
net: exponential backoff, randomize packet expiration time
2020-01-19 14:32:57 -05:00
Adrien Béraud
616d6fe4b8
update copyright date
2020-01-03 15:14:32 -05:00
Adrien Béraud
c5c3695612
logger: use shared_ptr
2019-12-19 15:12:23 -05:00
Adrien Béraud
259986e786
network engine: don't throw in case of unknown transaction
2019-12-01 14:52:21 -05:00
Adrien Béraud
cb7d7f6614
dht: allow to configure rate limiter
2019-11-07 16:43:04 -05:00
Adrien Béraud
feb498305f
network engine: convert mapped IPv4
2019-06-22 18:37:58 -04:00
Adrien Béraud
120c017399
net: add DatagramSocket, UdpSocket transport
2019-06-07 14:14:15 -04:00
Adrien Béraud
7f48c4808b
network engine: minor cleanup
2019-04-30 17:47:40 -04:00
Adrien Béraud
6a5724a868
peerdiscovery: allow per-domain publish, cleanup
2019-04-23 12:09:08 -04:00
Adrien Béraud
ef82652a1e
network: header cleanup
2019-04-14 11:30:10 -04:00
Adrien Béraud
6c705e525f
net: factorize logic to network_utils
2019-04-08 12:07:11 -04:00
Adrien Béraud
4401e47002
cleanup, fix clang-tidy warnings
2019-03-17 17:43:52 -04:00
Adrien Béraud
1e10e28fd7
network: improve message parsing performance
2019-03-17 16:07:20 -04:00
Adrien Béraud
f418b3651f
update copyright date
2019-03-16 12:37:23 -04:00
Adrien Béraud
313f54c840
dht: disable some verbose logs
2019-03-10 17:27:37 -04:00
Adrien Béraud
39e69f813c
network engine: cleanup
2019-02-19 01:59:59 -05:00
Adrien Béraud
c0e376e15a
dht: reduce log verbosity
2018-12-28 01:41:10 -05:00
Yanfei Han
dc4a790a38
A obviouse bug on network engine
2018-11-29 00:47:00 +08:00
Adrien Béraud
092f5cfef0
network_engine: fix warning
2018-11-26 16:34:19 -05:00
Adrien Béraud
00c1be9cdc
logger: use DBG for DEBUG to avoid name conflicts
2018-11-22 15:43:55 -05:00
Adrien Béraud
b2171d707a
network engine: properly apply flag MSG_NOSIGNAL
2018-05-25 10:26:58 -04:00
Adrien Béraud
60db9fd9cd
logs: reduce node expiration to debug level
2018-05-25 10:26:58 -04:00
Adrien Béraud
e8989f1f79
network engine: handle EPERM
2018-05-24 16:07:16 -04:00
Adrien Béraud
9249f34c47
network engine: fix node leak during destruction
2018-05-24 15:01:23 -04:00
Adrien Béraud
4a49a53222
Revert "network engine: expire node on next run on network failure"
...
This reverts commit 8489433060 .
2018-05-02 11:55:01 -04:00
Adrien Béraud
8489433060
network engine: expire node on next run on network failure
2018-04-11 11:27:46 -04:00
Adrien Béraud
6a2f61a0db
dht: fix compilation warnings
2018-04-10 12:48:19 -04:00
Adrien Béraud
d2df93c75e
network engine: send nodes in listen confirmation
2018-03-28 09:54:04 -04:00
Adrien Béraud
1617c79e5d
network: add signaling for expired, refreshed values
2018-03-14 23:39:35 -04:00
Adrien Béraud
cab0813b17
dht: reduce log verbosity
2018-02-24 15:15:49 -05:00
Adrien Béraud
e6a2d96622
net: restart socket in case of sigpipe
2018-01-23 11:34:14 -05:00
Adrien Béraud
3a61692618
net: set MSG_NOSIGNAL if possible
2017-11-17 02:20:31 +01:00