5875 Commits

Author SHA1 Message Date
Marcin Rataj 41462353c6 feat: NonPublicAddrPublishing option (#3489)
Co-authored-by: Marco Munizaga <git@marcopolo.io>
2026-04-21 20:52:49 -07:00
Chirag Soni 6572945550 fix: relay candidate added into backoff list even if reservation on that relay candidate success (#3482) 2026-03-30 15:37:23 -07:00
Marco Munizaga 062200be7a Release v0.48.0 v0.48.0 2026-03-17 14:58:46 -07:00
Marco Munizaga 061805d876 lint yaml file 2026-03-17 14:33:27 -07:00
Marco Munizaga be060d77ff Ignore known incompatibility with webtransport versions in interop test 2026-03-17 14:33:27 -07:00
Marco Munizaga 418cf8ff40 refactor(webtransport): Use keygen package for deterministic ecdsa key
generation.
2026-03-17 12:06:33 -07:00
Marco Munizaga 93a9158968 ci: remove go-version parameter to default to go.mod version
per: https://github.com/libp2p/go-libp2p/pull/3463#issuecomment-4006504084
2026-03-16 12:49:58 -07:00
Marco Munizaga 8bb624d77c Bump transport interop Go toolchain 2026-03-16 12:49:00 -07:00
sukun 7d0752e7df basichost: advertise all interface addrs for unspecified listen addrs (#3468) 2026-03-16 18:11:21 +05:30
Vlad 67f4f585fb fix(mocknet): make stream deadline methods noop instead of returning error (#3471) 2026-03-05 09:20:04 -08:00
sukun 7198ad347f webrtc: upgrade pion deps (#3469)
Co-authored-by: Alex Wu <dindinw@users.noreply.github.com>
2026-02-27 16:25:49 +05:30
Andrew Gillis e16f35e99a refactor: apply go fix modernizers from Go 1.26 (#3463)
Co-authored-by: sukun <sukunrt@gmail.com>
2026-02-26 12:40:50 -10:00
Marco Munizaga 8a6fd5b923 Update to Go 1.25 (#3462) 2026-02-17 12:09:23 -08:00
Marco Munizaga 026bdce7d5 quicreuse: fix incorrect skip in TestReuseListenOnSpecificInterface (#3417)
Co-authored-by: Andrew Gillis <11790789+gammazero@users.noreply.github.com>
2026-02-02 16:55:55 +05:30
jpserrat 7f5ce40aaa cleanup dcutr legacy behavior and add fallback
fallback will get triggered during the last attempt at holepunching.

Co-authored-by: Marco Munizaga <marco@marcopolo.io>
2026-01-29 16:35:19 -05:00
Marco Munizaga 46986fcdbf Remove assertion that assumes a certain CI network environment
The number of interfaces attached to the CI is unknown to this test. We
shouldn't assert on a specific count.

Co-Authored-By: gammazero <11790789+gammazero@users.noreply.github.com>
2026-01-26 17:22:51 -05:00
Marco Munizaga 92c6f0eac2 update go-netroute dependency
Co-Authored-By: gammazero <11790789+gammazero@users.noreply.github.com>
2026-01-26 17:22:51 -05:00
Marco Munizaga b93eda0937 Release v0.47.0 (#3454) v0.47.0 2026-01-25 09:55:39 -05:00
segfault_bits 12393541b6 rcmgr: expose resource limits to Prometheus (#3433)
Signed-off-by: sneax <paladesh600@gmail.com>
2026-01-22 16:25:28 -05:00
Marten Seemann dd26469c52 update webtransport-go to v0.10.0 and quic-go to v0.59.0 (#3452)f
Co-authored-by: Marco Munizaga <git@marcopolo.io>
2026-01-22 14:28:08 -05:00
MozirDmitriy 636d44e15a fix: handle error from mh.Sum in IDFromPublicKey 2026-01-08 11:05:11 -08:00
Marten Seemann 2bed14540f update quic-go to v0.58.0 2026-01-08 11:02:44 -08:00
Marcin Rataj bcc2bf1866 fix(basic_host): set read deadline before multistream Close to prevent blocking
streamWrapper.Close() can block indefinitely when the remote peer is slow
or unresponsive during the multistream-select handshake completion.

The lazy multistream protocol negotiation defers reading the handshake
response until Close() is called. If the remote peer doesn't respond,
the read blocks forever, causing goroutine leaks.

This is particularly problematic for bitswap servers where taskWorkers
can get stuck trying to close streams after sending blocks.

The fix sets a read deadline (using DefaultNegotiationTimeout) before
calling the multistream Close(), ensuring the operation will time out
rather than block indefinitely.

Related: https://github.com/multiformats/go-multistream/issues/47
Related: https://github.com/multiformats/go-multistream/pull/48
2026-01-07 17:11:44 -08:00
Marco Munizaga 479b24baab mod tidy test-plans package (#3450) 2026-01-07 17:11:16 -08:00
Marco Munizaga 6c4273f47e update simnet dependency 2026-01-07 11:25:11 -08:00
Marco Munizaga 61bc00c35d rename simconlibp2p package to simlibp2p 2026-01-07 11:11:46 -08:00
Marco Munizaga f4e714c8f1 simlibp2p: add GetBasicHostPair helper 2026-01-07 11:11:45 -08:00
Marco Munizaga f7e1986c25 run synctest with Go 1.25 2026-01-07 11:11:45 -08:00
Marcin Rataj b0b2a1847d fix(autonatv2): secondary addrs inherit reachability from primary (#3435) 2026-01-05 15:32:23 -08:00
sukun 20ba3c9449 Release v0.46.0 v0.46.0 2025-12-13 15:13:15 +05:30
sukun f96852745c chore: update quic-go to v0.57.1 (#3439) 2025-12-12 01:36:21 +05:30
Marcin Rataj cf61065945 fix(mdns): filter addresses to reduce packet size (#3434) 2025-12-01 19:25:53 -08:00
sukun aefe38980c chore: update quic-go to v0.56.0 (#3425) 2025-11-13 11:08:46 -08:00
Marcin Rataj 5d5f8d7455 fix(webrtc): use debug level for pion errors (#3426) 2025-11-11 15:01:16 -08:00
Marco Munizaga d0ecbf99a9 Release v0.45.0 (#3424)
Co-authored-by: Marcin Rataj <lidel@lidel.org>
v0.45.0
2025-11-05 23:05:50 -05:00
Marcin Rataj 3f09fa4244 feat(gologshim): Add SetDefaultHandler (#3418)
Co-authored-by: Marco Munizaga <git@marcopolo.io>
2025-11-04 15:41:33 -05:00
Prithvi Shahi 4d16b4c025 Update Drips ownedBy address in FUNDING.json
Updates the Drips funding address from my personal address to the one owned by IP Shipyard
2025-11-03 18:16:59 -05:00
Marcin Rataj 7b78dd6802 fix(websocket): use debug level for http.Server errors
https://github.com/libp2p/go-libp2p/pull/3364 migrated from zap to slog
but accidentally changed the log level for http.Server.ErrorLog from
implicit INFO to explicit ERROR. This caused client EOF and TLS handshake
errors to spam error logs and stdout in apps which log only ERROR by
default.

These http.Server errors (client EOFs, TLS handshake failures from clients
with naive TLS implementations, connection timeouts from clients that abort
early) are normal operational noise, not actual server errors. Using
LevelDebug:
- matches semantic meaning (similar to existing connection timeout logs)
- respects user's configured threshold (default ERROR filters them out)
- allows users to enable for debugging via log level configuration

Fixes https://github.com/ipfs/kubo/issues/11027
Fixes https://github.com/ipfs/kubo/issues/11033
2025-10-27 19:30:59 -07:00
Marco Munizaga bc0a6d52f5 chore: release v0.44.0 v0.44.0 2025-10-07 13:15:41 -07:00
sukun b844aeee6a autonatv2: fix normalization for websocket addrs
1. Convert /wss to /tls/ws
2. Ignore the sni for comparison because there's no sni
information on `conn.LocalAddr()`
2025-10-07 08:29:55 -07:00
sukun bfd52ef4a4 autonatv2: remove dependency on webrtc and webtransport 2025-10-07 08:29:55 -07:00
Marco Munizaga fc35662e54 quicreuse: update libp2p/go-netroute (#3405) 2025-10-07 13:52:41 +05:30
Marco Munizaga bcf636ebcc chore: update quic-go to v0.55.0 2025-10-06 11:28:04 -07:00
sukun 4f1ba59f36 basichost: don't advertise unreachable addrs. (#3357) 2025-10-06 19:38:55 +05:30
sukun c19b3d6945 basichost: improve autonatv2 reachability logic (#3356)
This improves the reachability detection logic by introducing the concept of primary and secondary addresses. If we have a webtransport address which shares the IP and Port with a QUIC address, the WebTransport address will be considered secondary and the QUIC address will be considered primary.

If the Primary is reachable or unreachable, we require only one confirmation for the Secondary address. This speeds up address verification considerably. We also only refresh secondary addrs reachability once every 3 hours. For primary addresses this duration is 1 hour.
2025-10-06 15:45:31 +05:30
sukun 31f527dc87 basichost: fix lint error 2025-10-02 19:56:02 +05:30
Marco Munizaga ca2ec81fc9 ci: move to github actions runner 2025-09-30 12:08:35 -07:00
sukun 3e69227598 basichost: move EvtLocalAddrsChanged to addrs_manager (#3355) 2025-09-30 16:20:38 +05:30
Marco Munizaga e1218c52d6 chore: gitignore go.work files 2025-09-26 09:32:51 -07:00
Marco Munizaga 758bbd29a1 refactor!: move insecure transport outside of core 2025-09-26 09:32:51 -07:00