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