Package python3-module-ephemeral-port-reserve: Information

    Source package: python3-module-ephemeral-port-reserve
    Version: 1.1.4-alt1
    Build time:  Jan 5, 2024, 07:33 AM
    Report package bug
    License: MIT
    Summary: Find an unused port, reliably
    Description: 
    Sometimes you need a networked program to bind to a port that can't be
    hard-coded. Generally this is when you want to run several of them
    in parallel; if they all bind to port 8080, only one of them can succeed.
    
    The usual solution is the "port 0 trick". If you bind to port 0, your
    kernel will find some arbitrary high-numbered port that's unused and
    bind to that. Afterward you can query the actual port that was bound
    to if you need to use the port number elsewhere. However, there are
    cases where the port 0 trick won't work. For example, mysqld takes
    port 0 to mean "the port configured in my.cnf". Docker can bind your
    containers to port 0, but uses its own implementation to find a free
    port which races and fails in the face of parallelism.

    List of rpms provided by this srpm:
    python3-module-ephemeral-port-reserve (noarch)

    Maintainer: Anton Zhukharev

    List of contributors:
    Anton Zhukharev

      1. rpm-build-pyproject
      2. python3-module-mock
      3. python3-module-pyproject-installer >= 0.4.0
      4. python3-module-pytest
      5. python3-module-setuptools
      6. python3-module-wheel

    Last changed


    Dec. 6, 2023 Anton Zhukharev 1.1.4-alt1
    - Built for ALT Sisyphus.