473,804 Members | 2,133 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A bug in FF3's sync XHRs ?

Either a synchronous call isn't what I believe it to be, or there's a
bug in FF3 :

IOW : Why does the onclick handler of the button "SYNC" return (in
FF3) before the XHR has completed ?

Click it several times in a row, and it will post several concurrent
XHRs ...

http://preview.tinyurl.com/5eu3ll

?

--
Jorge.
Aug 31 '08 #1
2 1473
On Aug 31, 1:33*pm, Jorge <jo...@jorgecha morro.comwrote:
Either a synchronous call isn't what I believe it to be, or there's a
bug in FF3 :

IOW : Why does the onclick handler of the button "SYNC" return (in
FF3) before the XHR has completed ?

Click it several times in a row, and it will post several concurrent
XHRs ...

http://preview.tinyurl.com/5eu3ll

?

--
Jorge.
Because of luck of debugging info in sync request (in your link) I can
not say for sure what is happening, but by the look of it, the sync
request is being submitted in async mode and processing continues...
Somebody mentioned a bug in FF (3?) with sync mode AJAX requests in
your previous thread... Maybe this is it...
Sep 1 '08 #2
On Sep 1, 1:27*pm, GArlington <garling...@tis cali.co.ukwrote :
>
Because of luck of debugging info in sync request (in your link) I can
not say for sure what is happening, but by the look of it, the sync
request is being submitted in async mode and processing continues...
Yes, that's what is happening.

Here's the code of the SYNC button :

sync.onclick= function () {
var a, xhr= new XMLHttpRequest( );
xhr.open("GET", "xhrData.txt?"+ Math.random(), ** false ** );
xhr.send(null);
//dummy do-something-else-just-in-case before returning
//See cljs thread 2
a= 1;
};

If you can monitor the network traffic you'll see that pressing it
once produces a traffic of x (KB/s), pressing it twice yields 2x, etc.
IOW: the synchronous XHRs are being posted asynchronous and
concurrently.

--
Jorge.
Sep 2 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2434
by: kartik | last post by:
I open an fstream in read-only mode, read till the end, then try to sync() before seeking to position 0 & reading again. But the sync fails. I discovered that clear()ing the stream before the sync causes the sync to work. Seeking to position 0 before the sync doesn't seem to help. If you look at sync() as simply invalidating the read buffer (isn't that right?), isn't it illogical for it to fail in this situation? Besides sync()...
3
2983
by: Ryan Liu | last post by:
Hi, What does ArrayList.Synchronized really do for an ArrayList? Is that equal to add lock(this) for all its public methods and properties? Not just for Add()/Insert()/Remvoe()/Count, but also for Item (this)? Normally,do I need sync at all? Isn't that true without sync the program can run faster?
7
9708
by: Ole | last post by:
Hi, I'm going to develop a socket communication between an instrument (running CE 5.0 with Compact Fraework V2) and a PC. As the instrument should only connect to one PC at a time I believe that the sync version of the socket should be the easiest - or what??? (please tell if I'm wrong). Are there anyone who is able to point to a Server and Client example code in C# VS2005 (I've only been able to find a C++ version) ???
3
2798
by: iKiLL | last post by:
Hi , I am trying to debug a problem with a Windows Mobile Application. I need the PDA to Sync(I have writen the sync process myself using a web service) using GPRS while Debugging from the VS IDE. My question is: How can this be done? Is there some settings i need on the PDA. Could some one point me in the direction of an artical on this.
7
5220
by: john | last post by:
I am reading TC++PL3 and on page 644 it is mentioned: "Flushing an istream is done using sync(). This cannot always be done right. For some kinds of streams, we would have to reread characters from the real source - and that is not always possible or desirable. Consequently, sync() returns 0 if it succeeded. If it failed, it sets ios_base::badbit (21.3.3) and returns -1. Again, setting badbit might trigger an exception (21.3.6). A sync()...
1
1441
by: Jonathan N. Little | last post by:
Something I stumbled upon with the new Firefox 3. Love the new browser, but noticed that if your have a white-space: pre element within a fieldset it causes the containing fieldset to expand like a table cell regardless of the overflow setting. See test page can compare in FF3 and any other browser... http://www.littleworksstudio.com/temp/usenet/ff3fieldsetbug.html FF3 Bug?
29
3328
by: zalek | last post by:
I am writing application with Ajax in sync mode - xmlHttp.open("GET", url, false). I noticed that in FireFox handler doesn't starts. It starts when I use xmlHttp.open("GET", url,true). I need to use it in sync mode. Any ideas what can I do? Thanks, Zalek.
14
1224
by: DL | last post by:
The rationale is that certain IE7 features are great while FF3 got things that IE7 doesn't and the user has both browsers installed (not assumption but a requirement for "controled" use environment). Scenario: IE7 is the main browser, from there launch a small FF3, do stuff and this child window has a hidden field for 'action' as well, once done, the user switch back to the main IE window, continue doing stuff, then save and (possibly...
3
4515
by: OldBirdman | last post by:
Help & Support - Start syncing 1. Click to open Sync Center - OK I did that 2. On the toolbar, click Sync All - There is NO toolbar So under Tasks, I click "Set up new sync partnerships". WRONG. Message "There are no new sync partnerships that can be set up on this computer". There are 2 computers. The new Vista Laptop can see the C:\ drive of the XP desktop. I have copied some of the files to the new Vista machine, and now I want to...
0
9595
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10603
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10099
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9176
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7643
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5675
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3836
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.