The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Mark Broadhurst (2) [Avatar] Offline
#1
Hi,
I notice that you use
using(HttpClient http = new HttpClient()){
//stuff
}

in alot of examples in this book, I was wondering if you hit issues with .NET using lots of ports and slow down because of this?

More info:
https://aspnetmonsters.com/2016/08/2016-08-27-httpclientwrong/
c.horsdal (64) [Avatar] Offline
#2
I have and if I was to do it again, I would re-use the HttpClients, like I figure you sugggest
Mark Broadhurst (2) [Avatar] Offline
#3
Ok thanks
If you do a second edition I'll be all over it.