Commit graph

243 commits

Author SHA1 Message Date
orignal 97fdedfbe3 implement SSU2HolPunchSession 2024-10-16 08:28:25 -04:00
orignal ec1f41b13c insert multiple packets to the queue using splice 2024-10-15 15:05:18 -04:00
orignal 4e581af3ba plain list of received packets in queue 2024-10-14 21:21:07 -04:00
orignal 48f7131a7d received packets queue 2024-10-14 18:55:41 -04:00
orignal 1a6109109a don't sample too small list of eligible introducers 2024-10-06 20:57:35 -04:00
orignal 0710f62948 fixed potential race condition 2024-10-04 20:44:58 -04:00
orignal bce9630ff8 try to create new sessions with introducers if existing are about to expire 2024-10-04 08:26:32 -04:00
orignal 7f3a04a72f select random introducer session. don't update creation time 2024-10-03 18:44:09 -04:00
orignal 514be6d048 introducer expiration time variance 2024-10-01 21:26:54 -04:00
orignal 8c292727da introducer duration variance 2024-10-01 20:35:46 -04:00
orignal d5c40bb6be send keep-alive for newly selected introducer session 2024-10-01 18:21:07 -04:00
orignal 15cd4feade move Bob's peer tests from SSU2 session to server 2024-09-28 22:05:25 -04:00
orignal abbe1fea64 fixed clang build error 2024-09-28 16:20:59 -04:00
orignal 62b811c2c1 use memory pool for SSU2 received packets arrays 2024-09-28 09:49:45 -04:00
orignal 64e4b3871a update introducer's iTag is session to introducer was replaced to new one 2024-09-27 13:32:20 -04:00
orignal c3a1631319 use weak_ptr for Bob's peer tests and relay tags 2024-09-26 18:38:17 -04:00
orignal a06cce0aaf eliminate extra copy of vector of SSU2 packets 2024-09-26 15:54:29 -04:00
orignal 75b1c144b4 drop too short follow on SSU2 packets 2024-09-26 08:48:17 -04:00
orignal 32ad4b4858 fixed possible race conditions with m_SessionsByRouterHash 2024-09-25 14:34:52 -04:00
orignal 98669eff4f delete session by hash from table if expired or terminated 2024-09-25 11:13:01 -04:00
orignal 262a803d10 make sure we are done with session before remving it 2024-09-24 20:57:04 -04:00
orignal 0912de5b77 don't connect peer test session. Use weak_ptr for seesions by hash 2024-09-24 20:03:15 -04:00
orignal 2dfc9003a7 separate and move own peer test to SSU2Server 2024-09-23 14:16:24 -04:00
orignal 2fa4237acd renew connected receintly timestamp, add endpoint to the list if hole punch is being sent 2024-09-18 14:35:59 -04:00
orignal f20391d460 check if we connected recently to an endpoint before sending peer test 2024-09-17 21:49:23 -04:00
orignal da0e527777 termination check timeout variance 2024-08-26 20:57:28 -04:00
orignal d75f15104e select only established sessions for peer tests 2024-08-10 14:43:29 -04:00
orignal ff8941af71 check if address is still introducer before trying to introduce 2024-06-27 18:02:17 -04:00
orignal f125936b2e try to lookup other introducers' routers if found out doesn't have applicable addresses 2024-06-26 08:53:04 -04:00
orignal 457b64f92d try to connect to introducer through any available address 2024-06-14 18:05:01 -04:00
orignal 6caec6b551 check if updated router is still introducer. Remove non-introducer sessions from introducers list 2024-06-13 18:10:45 -04:00
orignal 29872fc003 check if local address exists 2024-06-10 17:58:19 -04:00
orignal 12653f2fe4 don't try introducer with invalid address. Terminate session immediately if appropriate introducer not found 2024-06-09 18:38:13 -04:00
orignal 4178ac8eac select newest introducers to publish 2024-06-08 16:08:32 -04:00
orignal 6a590bf970 use std::mt19937 instead rand() 2024-06-07 22:10:52 -04:00
orignal 2f847d62bb fixed typo 2024-06-07 13:35:37 -04:00
orignal df6d48dbae request only not found routers from introducers 2024-06-07 13:29:51 -04:00
orignal bacce7dc60 fixed introducer's index 2024-06-06 16:13:30 -04:00
orignal b3314380cc don't use expired introducer even if we a session with it 2024-06-06 14:19:30 -04:00
orignal a1322d4667 move unsent I2NP messages to new session if replaced 2024-06-01 17:46:18 -04:00
orignal 22dabfd79e use unordered_map for excluded routers. don't request to self 2024-05-15 13:31:31 -04:00
orignal 0e41c3fa36 resend more interval variance 2024-05-15 11:57:14 -04:00
orignal 124698854f skip resent recently sessions during resend 2024-05-14 18:17:47 -04:00
orignal 161ff3579b don't delete new session with same router hash from sessions-by-hash table 2024-03-15 20:12:47 -04:00
orignal 6ba42a0912 check if established peer test session has the same address type 2024-03-02 18:17:56 -05:00
orignal 1292ec67c0 check if remote router supports peer test 2024-03-02 18:02:55 -05:00
orignal f8722f17c6 pick peer test session only if Charlie's address supports peer testing 2024-03-01 21:59:52 -05:00
Vort e5f75eb61c log would_block error at info level 2024-02-29 16:12:51 +02:00
Vort 89f9bec49a derive SSU2 socket buffer size from bandwidth limit 2024-02-29 16:02:43 +02:00
Vort f3c052ed0c write SSU2 socket buffer sizes to log 2024-02-29 10:27:52 +02:00