[Rets-dev] Timeout exception

Sanja Tanasijevic sanjatanasijevic at yahoo.co.uk
Mon Mar 20 02:03:45 CST 2006


I am using C# and I am doing all this with closing
streams, responses and setting my HttpWebRequest to
null after finished transaction. It's useless. Timeout
exceptions happens too often. I suspect it's about
RETS server, I didn't have that problem in Visual
Studio 2005. 


--- Robert Davis <RobertD at realtechllc.com> wrote:

> Are you using VB.Net or C#?
> 
> Unlike conventional VB, VB.Net does not do automatic
> garbage cleanup for
> you. Even if it did, efficient code should kill
> objects as soon as they
> are no longer in use, not wait until the end.
> 
> Closing and setting an object to nothing has been
> the standard since
> well before the turn of the century. Closing an
> object doesn't kill it.
> It sits in memory in a closed state if you don't set
> it to nothing. It's
> not overkill, it's the coding standard.
> 
> 
> Robert Davis
> 
> 
> -----Original Message-----
> From: rets-dev-bounces at rets.org
> [mailto:rets-dev-bounces at rets.org] On
> Behalf Of Dan Woolley
> Sent: Friday, March 17, 2006 7:16 AM
> To: Sanja Tanasijevic; rets-dev at rets.org
> Subject: RE: [Rets-dev] Timeout exception
> 
> We do not have any timeout or drop connection issues
> with our .NET RETS
> classes and we are running them in .NET 2003 (1.1
> Framework).  I notice
> we have explicit code to both close and set to
> Nothing all these objects
> after *each* communication with the server: 
> request, response,
> streamreader, and any xmlreader (if used).  Closing
> and setting them to
> nothing seems a little over-kill, but it was put in
> there three years
> ago for some reason, and it could have been due to
> the same problem you
> are seeing.
> 
> I also see we are setting the request.keepalive to
> True and explicitly
> setting the request.timeout to a value between 30
> and 60 seconds.
> 
> 
> Dan Woolley
> Vice President of Technology
> www.eneighborhoods.com
> 
> 
> -----Original Message-----
> From: rets-dev-bounces at rets.org
> [mailto:rets-dev-bounces at rets.org] On
> Behalf Of Sanja Tanasijevic
> Sent: Friday, March 17, 2006 8:43 AM
> To: rets-dev at rets.org
> Subject: [Rets-dev] Timeout exception
> 
> Hi!
> 
> 
> I developed RETS Client in Visual Studio 2005. It
> worked good. When I
> transfered it in VS 2003. It started failing.
> Timeout exception is
> constant problem. Almost after every single
> transaction I have to
> restart application, even more times. Otherwise,
> it's going on
> indefinetly until it  break on Time out exception.
> I am closing all streams and response. But it
> doesn't help  at all.
> Any solution to this problem?
> 
> 
> 
> 
>  
> 
> 
> 		
>
___________________________________________________________
> Yahoo! Photos - NEW, now offering a quality print
> service from just 8p a
> photo http://uk.photos.yahoo.com
> _______________________________________________
> Rets-dev mailing list
> Rets-dev at rets.org
> http://lists.rets.org/mailman/listinfo/rets-dev
> *** eSafe scanned this email for malicious content
> ***
> *** IMPORTANT: Do not open attachments from
> unrecognized senders  ***
> _______________________________________________
> Rets-dev mailing list
> Rets-dev at rets.org
> http://lists.rets.org/mailman/listinfo/rets-dev
> _______________________________________________
> Rets-dev mailing list
> Rets-dev at rets.org
> http://lists.rets.org/mailman/listinfo/rets-dev
> 



	
	
		
___________________________________________________________ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com


More information about the Rets-dev mailing list