Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.
This repository was archived by the owner on Jun 1, 2026. It is now read-only.

httpclient will still use 40 threads #1116

Open

Description

I found even the client side will start 40 threads, I am working on a ARM box environment, 40 threads are too much, is this correct behavior?

(gdb) bt
#0 __pthread_create_2_1 (newthread=0x7fffffd8f0, attr=0x0, start_routine=0x4bc448 <(anonymous namespace)::threadpool_impl::thread_start(void*)>,
arg=0x74ccd0 crossplat::threadpool::shared_instance()::s_shared) at pthread_create.c:505
#1 0x00000000004bcdec in crossplat::threadpool::shared_instance() ()
#2 0x00000000004bf148 in web::http::client::details::create_platform_final_pipeline_stage(web::uri&&, web::http::client::http_client_config&&) ()
#3 0x0000000000481b78 in web::http::client::http_client::http_client(web::uri const&, web::http::client::http_client_config const&) ()
#4 0x0000000000481ee0 in web::http::client::http_client::http_client(web::uri const&) ()

Activity

  1. chenyicong commented on Apr 24, 2019

    @chenyicong

    hi,
    actually, you can change number of thread there: threadpool.cpp::threadpool& threadpool::shared_instance()

  2. mohamedAlaaK commented on May 28, 2019

    @mohamedAlaaK

    you need to call this at the start of the program
    crossplat::threadpool::initialize_with_threads(num_threads);
    and include this header <pplx/threadpool.h>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions