question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Server is not processing parallel requests

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:22 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
debevvcommented, Jun 6, 2018

I found the same issue while working for another PR. I will try to release the fix for this one too.

1reaction
yaacovcommented, Jun 26, 2018

I am really sorry for the long weekend

Never be sorry for a long weekend 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found