mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
fix: impl quic listener
This commit is contained in:
@ -8,6 +8,8 @@ from dataclasses import (
|
||||
)
|
||||
import ssl
|
||||
|
||||
from libp2p.custom_types import TProtocol
|
||||
|
||||
|
||||
@dataclass
|
||||
class QUICTransportConfig:
|
||||
@ -39,6 +41,12 @@ class QUICTransportConfig:
|
||||
max_connections: int = 1000 # Maximum number of connections
|
||||
connection_timeout: float = 10.0 # Connection establishment timeout
|
||||
|
||||
# Protocol identifiers matching go-libp2p
|
||||
# TODO: UNTIL MUITIADDR REPO IS UPDATED
|
||||
# PROTOCOL_QUIC_V1: TProtocol = TProtocol("/quic-v1") # RFC 9000
|
||||
PROTOCOL_QUIC_V1: TProtocol = TProtocol("quic") # RFC 9000
|
||||
PROTOCOL_QUIC_DRAFT29: TProtocol = TProtocol("quic") # draft-29
|
||||
|
||||
def __post_init__(self):
|
||||
"""Validate configuration after initialization."""
|
||||
if not (self.enable_draft29 or self.enable_v1):
|
||||
|
||||
Reference in New Issue
Block a user