Skip to content

feat: Add basic hole punching support for py-libp2p - #922

Closed
asmit27rai wants to merge 10 commits into
libp2p:mainfrom
asmit27rai:hole-punching
Closed

asmit27rai wants to merge 10 commits into
libp2p:mainfrom
asmit27rai:hole-punching

Conversation

@asmit27rai

Copy link
Copy Markdown
Contributor

Fixes: #733

  • Implement DCUtR protocol for hole punching coordination
  • Add basic example demonstrating hole punching
  • Include initial test suite
  • Add documentation

- Implement DCUtR protocol for hole punching coordination
- Add basic example demonstrating hole punching
- Include initial test suite
- Add documentation
@seetadev

Copy link
Copy Markdown
Member

@asmit27rai : Hi Asmit. Hole punching is already there and well merged: #668

Your task was interop between py-libp2p and go-libp2p in reference to hole punching and not adding support for hole punching.

Please catch up with @acul71 (Luca) and @Winter-Soren (Soham) on this front. Appreciate it.

- Implement DCUtR (Direct Connection Upgrade through Relay) protocol
- Add hole punching examples and comprehensive tests
- Update imports to use existing dcutr_pb2 instead of duplicate protobuf
- Fix asyncio/trio compatibility issues in examples and tests
- Enable full parallel test execution (762 tests)
- Remove duplicate protobuf definitions to prevent symbol conflicts

All tests pass and hole punching functionality is fully integrated.
@acul71

acul71 commented Sep 15, 2025

Copy link
Copy Markdown
Collaborator

@asmit27rai
I've been trying to resolve issues here: asmit27rai#1
Not perfect but you can review and merge if you like it.

@asmit27rai

Copy link
Copy Markdown
Contributor Author

@asmit27rai I've been trying to resolve issues here: asmit27rai#1 Not perfect but you can review and merge if you like it.

Reviewed and Merged.

@acul71

acul71 commented Oct 4, 2025

Copy link
Copy Markdown
Collaborator

Hello @asmit27rai , please remind me is this only a initial pr for the issue ?
what's the current status ?

@acul71

acul71 commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

Closing as superseded — hole punching core landed via #668. Please continue interop work on #936 rather than this duplicate core PR. Note: extensive cross-impl interop belongs in unified-testing / root interop/, not growing more in-repo harnesses.

@acul71 acul71 closed this Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hole Punching Interop Tests for py-libp2p with other libp2p modules

4 participants