Commit Graph
3132 Commits
Author SHA1 Message Date
orignal 5352ac46bc removed CreateAndReserveFile 2026-08-13 13:37:44 -04:00
PobreGato 6be42e68f1 keep streaming packets pool alive for streams 2026-08-13 02:53:38 +03:00
orignal 0ac37e14de fixed race condtion with local RouterInfo properties 2026-08-12 16:43:22 -04:00
Dimitris Apostolou ea423cbe6f fix typos 2026-08-12 19:27:06 +03:00
orignal 3b6b48b94a Merge pull request #2466 from pobregat0/config-init-twice
don't add config options twice on repeated Init
2026-08-10 20:26:12 -04:00
PobreGato 278b0c5714 don't add config options twice on repeated Init 2026-08-11 03:09:44 +03:00
orignal 87c9e7a847 create subdirs when reserve file. create path from subdirs 2026-08-10 10:24:22 -04:00
orignal 2182a0add5 fixed possible overflow with negative value 2026-08-09 15:02:21 -04:00
orignal e32e694a83 common HKDF context for ratchets tags 2026-08-08 16:52:28 -04:00
orignal 6b100353ba generate msgid from instead RAND_bytes 2026-08-08 14:38:11 -04:00
orignal 60678683ab Merge pull request #2464 from freeacetone/udp-tunnel-performance
Udp tunnel performance (2)
2026-08-08 11:44:32 -04:00
acetone 9d320d77eb datagram tunnel window and ack policy 2026-08-08 17:56:59 +03:00
orignal 7547d675a2 Rename added 2026-08-08 08:32:29 -04:00
orignal bff47aff7c cancel ack send timer on terminate 2026-08-06 07:10:58 -04:00
orignal 72aeea494e don't invoke completion handler within async function 2026-08-05 10:09:53 -04:00
orignal 3ae36ee350 don't save session with saved packet 2026-08-04 14:43:23 -04:00
orignal db484aabb3 Merge pull request #2459 from bimawa/fix/openssl-crash-socks5
fix: cancel pending socket ops before close to prevent macOS crash
2026-08-03 17:37:11 -04:00
Maxim Bunkov e16160b74d fix: cancel pending socket ops before close to prevent macOS crash
On macOS (kqueue), boost::asio throws an exception from pending
async_write/async_read handlers after the socket is closed.
This reaches io_service::run() as an uncaught exception and
terminates the process.

Call m_Socket.cancel() before shutdown/close in NTCP2, SAM,
I2PTunnel, and BOB so pending operations complete with
operation_aborted on a live socket.

Crash log (macOS 26, i2pd 2.61):
  libc++abi: terminating due to uncaught exception of type
  boost::wrapexcept<boost::system::system_error>:
  write_some: Bad file descriptor [system:9]

This is a kqueue-specific issue. On Linux (epoll), close() alone
cancels pending operations correctly. The fix is defensive on Linux
and required on macOS.
2026-08-04 02:04:30 +05:00
orignal d053ef4021 don't try to get data if receive timeout 2026-08-03 16:29:14 -04:00
orignal 3bcbab75e4 fixed typo 2026-08-01 21:19:14 -04:00
orignal f6625e7c21 don't accept NTCP2 version 3 and 5 if LibreSSL 2026-08-01 20:19:35 -04:00
orignal 867e977457 fallback to version 2 if peer is version 3 or 5 for LibreSSL because this post-quantum types are not supported 2026-08-01 18:44:03 -04:00
orignal b0b4051595 complete AsyncRead right away if stream is closed 2026-07-31 17:56:49 -04:00
orignal 0066db4119 create error code based on stream status 2026-07-31 17:17:49 -04:00
orignal 5b080f8d9b removed ECDSA blinding 2026-07-30 17:51:39 -04:00
jpk68 77c2f266b8 chore: fix memory safety issues 2026-07-30 17:01:45 -04:00
orignal 075cdc1850 allow ipv6 binding for Haiku because IPV6_V6ONLY has been implemented since R1/Beta6 2026-07-30 08:05:41 -04:00
orignal 57ea80fdbd Merge pull request #2453 from jpk68/ntcp2-issues
ntcp2: fix memory safety issues
2026-07-30 07:06:54 -04:00
jpk68 b148455295 libi2pd: add missing length checks 2026-07-29 19:07:39 -04:00
jpk68 b1d0bc34c1 ntcp2: fix memory safety issues 2026-07-29 18:34:52 -04:00
orignal da5b063420 fixed possible overflow with negative value 2026-07-28 22:09:03 -04:00
orignal e6088eb30f let pending operations complete when stream received FIN 2026-07-28 21:47:03 -04:00
orignal c49ca9cbdd pass boost::asio::error::eof if stream got terminated 2026-07-28 21:43:56 -04:00
orignal 4d072c1d57 pass boost::asio::error::eof if stream get closed 2026-07-28 18:40:03 -04:00
orignal 8affeb074f fixed possible m_PacketACKIntervalRem overflow 2026-07-28 10:29:22 -04:00
orignal 802a39edc4 Defer template added 2026-07-27 21:50:31 -04:00
orignal e5a4824a2e print correct negative time difference 2026-07-27 21:28:44 -04:00
orignal de37abd34e RunnableServiceWithWork::StopWorkAndFinishTasks added 2026-07-27 14:01:21 -04:00
orignal 15fb818993 don't fragment I2NP if too short 2026-07-26 20:33:18 -04:00
orignal d73407ad85 Merge pull request #2444 from wipedlifepotato/FORANDREW
#2435
2026-07-26 18:21:03 -04:00
orignal 8f2dee410d Tag::len 2026-07-26 17:28:57 -04:00
orignal d19cddca7e create_query 2026-07-26 14:11:18 -04:00
orignal bec18de888 correct AsyncReceive timeout 2026-07-25 22:06:11 -04:00
orignal 5e0269cf7b fixed typo 2026-07-25 18:15:07 -04:00
orignal 0b72de49b0 Merge pull request #2445 from jpk68/static-analysis
chore: fix issues found through static analysis
2026-07-25 17:57:32 -04:00
jpk68 9cae14f744 chore: fix memory leaks 2026-07-25 17:36:08 -04:00
jpk68 757f4d1881 chore: fix issues found through static analysis 2026-07-25 16:42:55 -04:00
orignal 9766ba7da6 Merge pull request #2443 from jpk68/memory-bugs-2
chore: fix more memory safety issues
2026-07-25 14:30:57 -04:00
Charlie Root 81faa906c1 #2435 2026-07-25 16:25:09 +00:00
orignal 4529131639 calculate publish timeout based on tunnel lengths if published through tunnels 2026-07-25 11:47:38 -04:00