X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fserver_container.cc;h=528fcd1fab180e288f45f9e356051e428f85f1c0;hb=aa431d73f34773d6a4b7fc104f9bd7ae0384e094;hp=2c31796f3e141c64530df63aabf99b253725e862;hpb=a18c65b0ee1a4721a4f1298f52f8b3446cf7c600;p=m6w6%2Flibmemcached diff --git a/libtest/server_container.cc b/libtest/server_container.cc index 2c31796f..528fcd1f 100644 --- a/libtest/server_container.cc +++ b/libtest/server_container.cc @@ -146,23 +146,6 @@ bool server_startup(server_startup_st& construct, const std::string& server_type Outn(); (void)try_port; - set_max_port(try_port); - - // Look to see if we are being provided ports to use - { - char variable_buffer[1024]; - snprintf(variable_buffer, sizeof(variable_buffer), "LIBTEST_PORT_%lu", (unsigned long)construct.count()); - - char *var; - if ((var= getenv(variable_buffer))) - { - in_port_t tmp= in_port_t(atoi(var)); - - if (tmp > 0) - try_port= tmp; - } - } - libtest::Server *server= NULL; if (0) { } @@ -249,12 +232,6 @@ bool server_startup(server_startup_st& construct, const std::string& server_type construct.push_server(server); - if (default_port() == 0) - { - assert(server->has_port()); - set_default_port(server->port()); - } - Outn(); return true;