Best Practice to Use HttpClient in Multithreaded Environment

后端 未结 5 1874
猫巷女王i
猫巷女王i 2020-11-27 09:40

For a while, I have been using HttpClient in a multithreaded environment. For every thread, when it initiates a connection, it will create a completely new HttpClient instan

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-27 10:44

    Method A is recommended by httpclient developer community.

    Please refer http://www.mail-archive.com/httpclient-users@hc.apache.org/msg02455.html for more details.

提交回复
热议问题