remove std::function complication from socketpool internals