MCPcopy Create free account
hub / github.com/DeNA/HandlerSocket-Plugin-for-MySQL / test_6

Method test_6

client/hstest.cpp:341–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341void
342hstest_thread::test_6(int test_num)
343{
344 int count = arg.sh.conf.get_int("count", 1);
345 auto_file fds[count];
346 for (int i = 0; i < count; ++i) {
347 const double t1 = gettimeofday_double();
348 std::string err;
349 if (socket_connect(fds[i], arg.sh.arg, err) != 0) {
350 fprintf(stderr, "id=%zu i=%d err=%s\n", arg.id, i, err.c_str());
351 }
352 const double t2 = gettimeofday_double();
353 if (t2 - t1 > 1) {
354 fprintf(stderr, "id=%zu i=%d time %f\n", arg.id, i, t2 - t1);
355 }
356 }
357}
358
359void
360hstest_thread::test_7(int num)

Callers

nothing calls this directly

Calls 3

socket_connectFunction · 0.85
get_intMethod · 0.80
gettimeofday_doubleFunction · 0.70

Tested by

no test coverage detected