Commit graph

225 commits

Author SHA1 Message Date
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
Vort aa1de7fe94 enable non-blocking mode for UDP sockets 2024-02-28 18:55:28 +02:00
orignal 36dbc15bca keep SSU2 socket open even if failed to bind 2024-02-09 18:08:51 -05:00
orignal 70639f1139 don't adjust clock if offsets came from same router 2024-01-24 19:05:38 -05:00
orignal 140146e433 limit mininal received packet size to 40 bytes 2024-01-19 14:09:48 -05:00
orignal ca9782dd0d handle 'reservedrange' param properly 2024-01-11 15:39:42 -05:00
orignal b855c71891 don't adjust clock if time offsets are too different 2023-12-31 14:39:59 -05:00
orignal 21f41a2b2a correct time offset direction 2023-12-31 10:14:24 -05:00
orignal d4c47d90cb adjust time offset after second time discrepancy 2023-12-30 17:16:28 -05:00
orignal 8447822c35 don't publish intrducers with zero tag 2023-08-05 15:25:16 -04:00
orignal 38795a41cb don't publish introducers with zero iTag 2023-08-05 08:55:06 -04:00
Vort 68f4961f1a separate test status from network status 2023-07-30 15:44:16 +03:00
orignal ae5239de43 remove introducer from RouterInfo after 60 minutes 2023-07-23 07:42:36 -04:00
orignal 2064504cce fixed send keepalive for existing session 2023-07-23 07:17:10 -04:00
orignal 4aa631c33f clear implied list if no more introducers found 2023-07-22 16:51:19 -04:00
orignal d6834d6a9a keep non-published, but not-expired introducers in the introducers list 2023-07-22 15:03:03 -04:00
orignal 413e25f20e don't pick too old session for introducer 2023-07-22 10:13:05 -04:00
orignal b8e19bf5f1 reduced peer test interval and added peer test interval variance 2023-07-22 08:50:49 -04:00
r4sas ae439b5385
SSU2: check if socket is opened before sending data, handle network_reset error
Signed-off-by: r4sas <r4sas@i2pmail.org>
2023-05-27 01:00:19 +03:00