Skip to content

Expose load_nat timeout parameter in load_interfaces() and P2PNode.start() #27

@angererc

Description

@angererc

https://github.com/robertsdotpm/p2pd/blob/8585f38da7dab22bf5042423547b0e3f2744ac90/p2pd/interface.py#L878C1-L878C37

I don't know why, but on my system (Windows 10 with a Ubuntu VM running via wsl) the call to nic = Interface(...); await nic.load_nat() in load_interfaces() only works in maybe 1 out of 6 tries. I tried in the terminal to call load_nat with a larger timeout, like 10 (default is 4), which consistently works. No matter what's the problem with my system, I think the timeout (and possibly the other load_nat parameters too) should be exposed in the load_interfaces() function (with the default value 4) and then, consecutively, in the P2PNode.start() method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions