mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74215fc44c
We trigger a pump immediately, but this is racey because we add to our plaintext data in a worker thread; if the worker thread runs after the pump then it ends up leaving plaintext to be handled, but there's no wakeup until the next one. This was the cause of seeing a random +1s and bunching added to ping responses sometimes: it wasn't until the *next* ping goes through the network that the plaintext queue gets processed, at which point it flushes the old one and often the new one together. The fix here gets rid of the map of sessions needing wakeups and instead adds an atomic flag to all of them to let us figure out which ones need to be flushed. |
3 years ago | |
---|---|---|
.. | ||
android | ||
apple | 3 years ago | |
config | 3 years ago | |
consensus | 3 years ago | |
constants | ||
crypto | 3 years ago | |
dht | 3 years ago | |
dns | 3 years ago | |
ev | 3 years ago | |
exit | 3 years ago | |
handlers | 3 years ago | |
hook | 3 years ago | |
iwp | 3 years ago | |
link | 3 years ago | |
linux | ||
messages | 3 years ago | |
net | 3 years ago | |
path | 3 years ago | |
peerstats | ||
quic | 3 years ago | |
router | 3 years ago | |
routing | ||
rpc | 3 years ago | |
service | 3 years ago | |
simulation | ||
tooling | ||
util | 3 years ago | |
vpn | 3 years ago | |
win32 | ||
CMakeLists.txt | 3 years ago | |
app.xml | ||
bootstrap.cpp | ||
bootstrap.hpp | ||
context.cpp | ||
endpoint_base.cpp | ||
endpoint_base.hpp | ||
lokinet_shared.cpp | ||
nodedb.cpp | ||
nodedb.hpp | ||
pow.cpp | ||
pow.hpp | ||
profiling.cpp | ||
profiling.hpp | ||
router_contact.cpp | ||
router_contact.hpp | 3 years ago | |
router_id.cpp | ||
router_id.hpp | ||
router_version.cpp | ||
router_version.hpp | ||
testnet.c |