Running both asynchronous and synchronous requests at the same time on Google Chrome

My device specifications are:

  • Intel Core i3-2310M 2.10 GHz
  • Operating System: Windows 7 Home Basic
  • Browser Options: Google Chrome or Opera
  • Server Configuration: Apache on 127.0.0.1 with CSP module (for InterSystems Caché® database system)

When accessing the page at , an asynchronous request is initiated followed by a synchronous request. This causes both queries to run for 4 minutes resulting in a state of "pending", ultimately leading to browser hang. After 4 minutes, the synchronous request returns a response - displaying a short HTML page indicating 'Not Found'. The error message states that the requested URL /csp/projectname/dynamicpage.csp was not found on the server.

An asynchronous request results in failure and triggers the error net :: ERR_INCOMPLETE_CHUNKED_ENCODING. A colleague who accesses the same page using Chrome on Windows 8.1 with an Intel Core i5 processor does not face this issue. Interestingly, he performs the synchronous request before the asynchronous one. Various diagnosis methods have been attempted; suggesting potential issues related to the OS and browser configuration, although Firefox appears unaffected.

The asynchronous request retrieves about 1 megabyte of data, while the synchronous request fetches approximately 400 bytes. There is speculation that the issue arose post installation of the Opera browser, however, doubts remain regarding this assumption.

Answer №1

By default, the server enforces sequential processing of requests within a single user session by locking the session. Therefore, if the initial request that requires a long processing time does not manually unlock the session, subsequent requests will be queued up behind it until completion. To prevent this, ensure to call %session.Unlock() in your extended server-side code.

Answer №2

Initially, it is important to understand that each request with cache will be handled by a single process per session. As a result, multiple requests on one page, whether asynchronous or not, will essentially function as synchronous requests. Additionally, the error message ERR_INCOMPLETE_CHUNKED_ENCODING could be related to certain CSP-mod settings; consider adjusting these parameters.

https://i.sstatic.net/ng6Ab.png

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

I'm curious about the method used to create this body fadeIn effect

Recently, I stumbled upon the website "". I must say, it is truly remarkable. I can't help but wonder how the content on this page is cleverly faded in and slides up. This specific page caught my attention: ...

Does an invisible property value exist?

Instead of: if ( ! $('#XX').is(':visible) ) Is there a property named invisible? I tested that one out, but it seems to not work. Appreciate the help! ...

Encountering a `Syntax Error` in a Jade view

I am attempting to create a basic chat application using the simple jade view engine with express. Upon running my app, I encountered a syntax error in the following view code, even though it seems quite straightforward. extends layout block scrip ...

Is there a way to send a variable from a client-side script to a server-side script?

I am facing a challenge in Google App Maker where I am attempting to execute a Client Script to retrieve a variable and then pass that variable to a Server Script for further use. However, I am struggling to figure out the correct implementation. Within m ...

Dynamically enhance dropdownlist options in webforms using JavaScript

I am currently working on an asp.net webforms project where I have a page with 2 dropdown lists. Whenever a user selects an option from ddl1, I want to dynamically add that selected element to ddl2 using JavaScript. Initially, when the page loads, ddl1 h ...

Update the class name property of a div within a component

I am working on creating a reusable card-publication component that allows me to specify the classname and position when declaring the tag. Below is the code for the component: import React from 'react'; function CardPublication({name}) { r ...

Passing image source as a Property in React JS: A Complete Guide

Can you please explain how to send the image source as a property (props) to a child component? ...

Safely render user-generated HTML content within a React application to prevent cross-site scripting vulnerabilities

A unique situation has arisen in our React app where a user inputs a string that is displayed to other users. The challenge lies in searching for specific characters within the string and replacing them with HTML elements. For example, transforming the wor ...

Determine the new total by adjusting the quantity and recalculating the amount

How can I find the total amount when the quantity is changed? I'm having trouble with this script within a while loop: (quantity * amount = total_amount) If you have any suggestions on how to resolve this issue, please help me out. function calcu ...

Converting CSV files to JSON format results in an empty array being returned

In my next.js project, I have an API route that processes statistics from a company API. Everything runs smoothly until it reaches the CSV to JSON conversion step, where it returns as []. I discovered that if I remove the CSVtoJSON conversion code and dir ...

declare external libraries in the TypeScript file

Is there a way to define a third-party module that is structured like this: Within the third-party module: module.exports = function foo(){ // perform an action } In my code: import * as foo from 'foo-module'; // Unable to locate a declarat ...

Creating a dynamic pricing system for products in WooCommerce

Attempting to dynamically change the price of a WooCommerce product but unable to find a solution that works for my specific case. I have tried various methods suggested here without success. For example, I have an ajax function that triggers the receive_ ...

Different method for adding child elements to the DOM

When creating a DOM element, I am following this process: var imgEle = document.createElement('img');     imgEle.src = imgURL;             x.appendChild(imgEle); Instead of appending the last line which creates multiple img elements ev ...

In Next.js, fetch returns the data that is already present, not new data

Using fetch as an SSG method in Next.js has been a challenge for me. I have encountered a discrepancy between the 'content' value I registered in the mock server and the actual displayed value. Here is the code snippet: import Layout_Mobile fro ...

Clicking on text triggers image display

My journey in coding is just starting and I have a good understanding of the basics of HTML, CSS, Javascript, and jQuery. I am trying to make an image appear when I click on text but struggling with the implementation. I'm working on a restaurant web ...

Observing mutations in HTML templates with MutationObserver

It appears that the MutationObserver does not function properly with a <template> tag. Check out this JSFiddle for more information! Any suggestions on how to effectively monitor changes in a <template> element? ...

Clicking on a jQuery element will reveal a list of corresponding elements

I've retrieved a list of elements from the database and displayed them in a table with a button: <a href="#" class="hiden"></a> To show and hide advanced information contained within: <div class="object></div> Here is my jQ ...

Prevent the next ajax request from overwriting the parameter value set in the previous request

When my application makes multiple ajax requests, I encounter a problem where the original set of parameters used for each request get changed by subsequent requests, leading to errors. Let's take an example: Request A initially sets an index of 0 in ...

Changing the Background Color of a Dropdown List Element Using JQuery Depending on the Title

Initially, the code consisted of a plain table with a select tag: <table class="table"> <tr> <td> <select id="e2"> <option value="green">Green</option> <option ...

Can you tell me the alternative for window.location.href when using Vue router?

After performing an action in my Vue app, I am looking to redirect to a different page within my single-page application (SPA). However, when I use the code window.location.href = "/subpage", the page refreshes and I end up losing cached data tha ...