简体   繁体   中英

Multiple Http request in a single thread

Its a simple question i am trying to understand for my project.

I need to Open 10000 http requests in a single thread.

I was wondering since I have never done something like that, if it is possible, and if i should encounter any problems doing so.

ty.

In that case you need to use non-blocking IO. Look at Http components http://hc.apache.org/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM