XMLHttpRequest stops working

XMLHttpRequest is the heart of what makes AJAX work. However, when trying to use it in strange ways as part of a Firefox extension, I’ve found that it doesn’t always work as expected. For example, if sending data from different parts of a JavaScript application, I observe that the first few connections are established and the messages go through, and then the remaining messages never appear on the wire unless I kill Firefox. It seems that most browsers enforce a limit on the number of concurrent XMLHttpRequests. Thus, it is important to close the requests that are no longer in use.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s