Click here to Skip to main content
15,890,845 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
GeneralRe: IT pros don't use all their annual leave due to work pressure Pin
Nelek6-Sep-16 2:17
protectorNelek6-Sep-16 2:17 
GeneralRe: IT pros don't use all their annual leave due to work pressure Pin
jgakenhe5-Sep-16 11:58
professionaljgakenhe5-Sep-16 11:58 
GeneralRe: IT pros don't use all their annual leave due to work pressure Pin
Joe Woodbury6-Sep-16 9:36
professionalJoe Woodbury6-Sep-16 9:36 
NewsNativeJIT Pin
Kent Sharkey5-Sep-16 9:32
staffKent Sharkey5-Sep-16 9:32 
NewsThe ultimate guide to Java 9 Pin
Kent Sharkey5-Sep-16 9:16
staffKent Sharkey5-Sep-16 9:16 
NewsBugs and documentation errors in .NET's HttpClient frustrate developers PinPopular
Kent Sharkey5-Sep-16 9:13
staffKent Sharkey5-Sep-16 9:13 
GeneralRe: Bugs and documentation errors in .NET's HttpClient frustrate developers Pin
Duncan Edwards Jones5-Sep-16 11:30
professionalDuncan Edwards Jones5-Sep-16 11:30 
GeneralRe: Bugs and documentation errors in .NET's HttpClient frustrate developers Pin
Marc Clifton5-Sep-16 11:42
mvaMarc Clifton5-Sep-16 11:42 
However, if you try to apply this pattern to HttpClient, another IDisposable class, you trip over some rather unexpected problems...When you dispose it, it starts the process of closing the socket(s) that it controls. Which means you have to go through an entirely new connection cycle the next time you make a request.

I'm sorry, but my response is "well, like, duh." I knew that ages ago (I guess .NET 2.0, so yeah, maybe I had read the 1.10 doc) when I did some performance tests of opening/closing HttpClient connections when I was writing a client-server app. First thing I did actually was check the performance of constantly re-opening a new connection every time I wanted to talk to the server.

And wrapping an HttpClient is a using block? I don't even do that for a SQL connection. In fact, I rarely (and I mean, blood dripping rare) ever use using.

The DNS thing I never encountered because this was all intranet stuff.

Marc
Imperative to Functional Programming Succinctly

Contributors Wanted for Higher Order Programming Project!

Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

GeneralRe: Bugs and documentation errors in .NET's HttpClient frustrate developers PinPopular
Wonde Tadesse6-Sep-16 4:31
professionalWonde Tadesse6-Sep-16 4:31 
GeneralRe: Bugs and documentation errors in .NET's HttpClient frustrate developers Pin
Marc Clifton7-Sep-16 9:29
mvaMarc Clifton7-Sep-16 9:29 
GeneralRe: Bugs and documentation errors in .NET's HttpClient frustrate developers PinPopular
Wonde Tadesse7-Sep-16 12:16
professionalWonde Tadesse7-Sep-16 12:16 
GeneralRe: Bugs and documentation errors in .NET's HttpClient frustrate developers Pin
Joe Woodbury6-Sep-16 9:37
professionalJoe Woodbury6-Sep-16 9:37 
GeneralRe: Bugs and documentation errors in .NET's HttpClient frustrate developers Pin
enhzflep6-Sep-16 15:00
enhzflep6-Sep-16 15:00 
NewsThe European Space Agency has found its missing Philae comet lander Pin
Kent Sharkey5-Sep-16 9:11
staffKent Sharkey5-Sep-16 9:11 
NewsMobile apps are now bigger than the web — a trend that threatens to eat Google's core business Pin
Kent Sharkey5-Sep-16 9:10
staffKent Sharkey5-Sep-16 9:10 
GeneralRe: Mobile apps are now bigger than the web — a trend that threatens to eat Google's core business Pin
Joe Woodbury6-Sep-16 9:38
professionalJoe Woodbury6-Sep-16 9:38 
NewsScientists make lasers out of human blood Pin
Kent Sharkey4-Sep-16 8:00
staffKent Sharkey4-Sep-16 8:00 
GeneralRe: Scientists make lasers out of human blood Pin
#realJSOP5-Sep-16 5:08
mve#realJSOP5-Sep-16 5:08 
NewsSo-called 'soft' skills remain hard to find Pin
Kent Sharkey4-Sep-16 7:58
staffKent Sharkey4-Sep-16 7:58 
GeneralRe: So-called 'soft' skills remain hard to find Pin
ledtech34-Sep-16 10:56
ledtech34-Sep-16 10:56 
GeneralRe: So-called 'soft' skills remain hard to find Pin
#realJSOP5-Sep-16 1:57
mve#realJSOP5-Sep-16 1:57 
GeneralRe: So-called 'soft' skills remain hard to find Pin
TheGreatAndPowerfulOz5-Sep-16 7:25
TheGreatAndPowerfulOz5-Sep-16 7:25 
GeneralRe: So-called 'soft' skills remain hard to find Pin
dan!sh 6-Sep-16 16:57
professional dan!sh 6-Sep-16 16:57 
GeneralRe: So-called 'soft' skills remain hard to find Pin
Vark1116-Sep-16 5:30
Vark1116-Sep-16 5:30 
GeneralRe: So-called 'soft' skills remain hard to find Pin
Joe Woodbury6-Sep-16 9:40
professionalJoe Woodbury6-Sep-16 9:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.