in

ASP.NET Weblogs

Drew's Blog

The Joys of Technology Explored

SharpReader Doesn't Close HTTP Connections?

It looks like there might be a bug in SharpReader where it never closes the HTTP connections. I did a netstat just now and noticed a bunch of "ESTABLISHED" connections to various servers via the HTTP port. As I looked at the DNS for the connections, I recognized some of them as blogs I frequent. So, I re-ran netstat with the -o option and sure enough, the PID was that of SharpReader. I guess maybe this explains why it's so fast at refreshing, but I'm sure the owners of those servers don't appreciate the connection being left open.

NOTE: As I finished writing this post (a couple minutes after starting) all the connections are still ESTABLISHED and there's no current activity in SharpReader.

Published Apr 09 2003, 01:22 PM by drub0y
Filed under:

Comments

 

ben lowery said:

hrm. i just ran netstat on my box and i only see one connection from SharpReader's PID.
April 9, 2003 11:13 AM
 

Marc LaFleur said:

I'm seeing the same thing over here...
April 9, 2003 11:45 AM
 

Phil Scott said:

15+ open connections over here. I think I might shut this little guy down for now.
April 9, 2003 2:08 PM
 

David Stone said:

Same...maybe that's why I was lagging on battle.net last night. :( Things were slower than usual.
April 9, 2003 4:12 PM
 

Luke Hutteman said:

This bug turned out to be caused by HttpWebRequest.KeepAlive, which defaults to true. It will be fixed in the next release.

See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemNetHttpWebRequestClassKeepAliveTopic.asp?frame=true
April 10, 2003 7:41 AM
 

Simon Fell said:

Keep-Alives are a feature of HTTP/1.1 not a bug. Make sure you're calling WebResponse.Close
April 20, 2003 10:55 AM
 

John Nielsen said:

SharpReader is the perfect example of .net and all the Microshite software philosophy i.e. Crappy Visual Tools allowing dumb people to do stinky program with no considerations for reliability, support, backward OS compatibility, proper programming practices etc.
May 30, 2003 6:20 PM

Leave a Comment

(required)  
(optional)
(required)  
Add