Server is not processing parallel requests
See original GitHub issueI just started the example server
I created a client that sends more three readHoldingRegisters
requests.
However, on the server, some requests are not being received. This is not an issue with the client as I have tested it with a simulator and it works fine.
I’ve just put multiple requests in the example client logger.
function run() {
// read the 4 registers starting at address 5
client.readHoldingRegisters(5, 4)
.then(function(d) {
console.log("Receive:", d.data); })
.then(function() {
setTimeout(run, 1000); })
.catch(function(e) {
checkError(e);
console.log(e.message); });
client.readHoldingRegisters(10, 4)
.then(function(d) {
console.log("Receive:", d.data); })
.catch(function(e) {
checkError(e);
console.log(e.message); });
client.readHoldingRegisters(15, 4)
.then(function(d) {
console.log("Receive:", d.data); })
.catch(function(e) {
checkError(e);
console.log(e.message); });
}
On the server, the getHoldingRegister
does not get executed for all of the addresses.
Issue Analytics
- State:
- Created 5 years ago
- Comments:22 (12 by maintainers)
Top Results From Across the Web
FastAPI parallel requests not working in Python - Stack Overflow
It is clearly single processing but not parallel request processing. Can someone guide where is the mistake, and why FastAPI with async and ......
Read more >sql server - Concurrent requests not running in parallel
I have verified this by checking sys.dm_exec_requests while the two queries are executing, S1 and S3 keep alternating between running and ...
Read more >Production server does not manage multiple request at time
So the operations are executed in parallel. ... Each request waits that the previous is over to get executed. Same application, different behavior....
Read more >Parallel Processing Requests - SAP Help Portal
It is not meant as a template for real coding. End of the caution. Use. You can send requests to various servers in...
Read more >Preventing server overload: limit requests being processed ...
Typically, the server runs out of memory or requests take too long, causing whatever is making the request to give up. The solution...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I found the same issue while working for another PR. I will try to release the fix for this one too.
Never be sorry for a long weekend 😃