Skip to content
Snippets Groups Projects
  • Nat Goodspeed's avatar
    43616131
    CHOP-661: Fix HTTPServer usage to turn off allow_reuse_address. · 43616131
    Nat Goodspeed authored
    Turns out that BaseHTTPServer.HTTPServer turns on that flag by default, which
    causes freeport() to fail (on Windows only?), happily instantiating multiple
    servers on the same port. Change known instances, fix freeport() docstring to
    highlight the issue. Add freeport() unit tests to verify expected behavior.
    43616131
    History
    CHOP-661: Fix HTTPServer usage to turn off allow_reuse_address.
    Nat Goodspeed authored
    Turns out that BaseHTTPServer.HTTPServer turns on that flag by default, which
    causes freeport() to fail (on Windows only?), happily instantiating multiple
    servers on the same port. Change known instances, fix freeport() docstring to
    highlight the issue. Add freeport() unit tests to verify expected behavior.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.