PDA

View Full Version : "Aborted" rpc call resulting in duplicate request



caseyb
24 Aug 2011, 5:06 AM
Thanks in advance for any help on this.

This may be more of a general question than an Ext one, but since it's happening to me after making an Ext Direct call, I thought maybe I could get it answered here. I'm making a call to a server side function like this:



Ext.rpc.Folders.createFolder(parentFolderId,text,function(rpcProvider, response){
//Client side response stuff...
});


The "createFolder" server side function is sometimes very slow. But it works about 90% of the time. Every once in awhile, I can see in firebug that the request is "aborted." I'm guessing this is a timeout. But the strange thing is that the browser makes the exact same request again. Is this normal behavior? I find the duplicate request really strange. What's even stranger is that sometimes the request labeled "aborted" actually works and I get duplicate writes to the database. Has anyone ever seen this?