Actually,

when you look at the GDataAuthRequestFactory, you can set the number of retries there.

So, what you would do is:

        GAuthRequestFactory factory = (GAuthRequestFactory) service.factory;
        factory.NumberOfRetries = 3;

And yes, this is supported either way. I put the retry loop in when i was debugging the intermittend closure happening under .NET 2.0, and when i fixed the bug i decided that there might be scenarios where you have an unreliable connection for whatever reasons, and hence this is not a bad feature to have.

You should still try to figure out why this happens. Proxy server?

Frank Mantek
 

On 10/5/06, Dinana < [EMAIL PROTECTED]> wrote:

I am building a project using the cs library, however if several
subsequent calls are made to Google Calendar service I get a
GDataRequestException with an inner exception saying that the
underlying connection has been closed and so authentication cannot be
performed successfully. This behaviour is random and not regular.

I found out that this happens in the following clause in
gauthrequest.cs:

                    if (iRetrying > this.factory.NumberOfRetries)
                    {
                        Tracing.TraceMsg ("Got no response object");
                        throw re;
                    }

I decided to increase the NumberOfRetries parameter to 2 in the
constructor since it originally set the NumberOfRetries to 0:

        public GDataGAuthRequestFactory(string service, string
applicationName) : base(applicationName)
        {
            this.Service = service;
            this.ApplicationName = applicationName;
            if (applicationName != null) {
                this.UserAgent = applicationName + " " + GDataGAuthAgent;
            } else {
                this.UserAgent = GDataGAuthAgent;
            }
            this.numberOfRetries = 2;
        }

N.B. This is the only place where numberOfRetries is modified in this
class.

Is this supported tested in the API or does it have any known side
effects?

Thanks



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Google Calendar Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/google-calendar-help-dataapi
-~----------~----~----~----~------~----~------~--~---

Reply via email to