tests/mem_functions.cc
/*
** There was a problem of leaking filedescriptors in the initial release
** of MacOSX 10.5. This test case triggers the problem. On some Solaris
** systems it seems that the kernel is slow on reclaiming the resources
** because the connects starts to time out (the test doesn't do much
** anyway, so just loop 10 iterations)
*/
There was a problem of leaking filedescriptors in the initial release
of MacOSX 10.5. This test case triggers the problem. On some Solaris
systems it seems that the kernel is slow on reclaiming the resources
because the connects starts to time out (the test doesn't do much
anyway, so just loop 10 iterations)
There was a problem of leaking filedescriptors in the initial release of MacOSX 10 . 5 . This test case triggers the problem . On some Solaris systems it seems that the kernel is slow on reclaiming the resources because the connects starts to time out ( the test doesn ' t do much anyway so just loop 10 iterations )
static test_return_t add_wrapper(memcached_st *memc)
{
  unsigned int max= 10000;
#ifdef __sun
  max= 10;
#endif
#ifdef __APPLE__
  max= 10;
#endif
  for (uint32_t x= 0; x < max; x++)
    add_test(memc);
  return TEST_SUCCESS;
}
static test_return_t add_wrapper ( memcached_st * memc ) { unsigned int max = 10000 ; #ifdef __sun max = 10 ; #endif #ifdef __APPLE__ max = 10 ; #endif for ( uint32_t x = 0 ; x < max ; x ++ ) add_test ( memc ) ; return TEST_SUCCESS ; }
There was a problem of leaking filedescriptors in the initial release
of MacOSX 10.5.
There was a problem of leaking filedescriptors in the initial release of MacOSX 10 . 5 .