bool server_startup(server_startup_st& construct, const std::string& server_type, in_port_t try_port, int argc, const char *argv[])
{
Outn();
- (void)try_port;
+ if (try_port <= 0)
+ {
+ libtest::fatal(LIBYATL_DEFAULT_PARAM, "was passed the invalid port number %d", int(try_port));
+ }
libtest::Server *server= NULL;
if (0)
}
}
}
+ else if (server_type.compare("memcached-light") == 0)
+ {
+ if (MEMCACHED_LIGHT_BINARY)
+ {
+ if (HAVE_LIBMEMCACHED)
+ {
+ server= build_memcached_light("localhost", try_port);
+ }
+ }
+ }
if (server == NULL)
{
- Error << "Failure occured while creating server: " << server_type;
- return false;
+ fatal_message("Launching of an unknown server was attempted");
}
/*