Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7248639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T22:09:57+00:00 2026-05-28T22:09:57+00:00

Approximately 10% of the POST or PUT requests I make to my Node.js HTTPS

  • 0

Approximately 10% of the POST or PUT requests I make to my Node.js HTTPS server take 2 minutes to get a response. The other 90% behave as expected.

I have verified with tshark that the body of the request is received by the server, but then it takes 2 minutes to trigger the ‘data’ and ‘end’ events of the ServerRequest object.

The requests that experience this latency appear to be random, but when it does happen, the time of the latency between receiving the packet and the ‘data’ and ‘end’ events being triggered is always exactly 2 minutes.

For all of these requests I’m posting a small json object that’s arriving in a single packet. For the requests experiencing latency, I know the headers are received by my application because the session cookie is parsed immediately. After session authentication, nothing happens until the ‘data’ and ‘end’ events are finally emitted 2 minutes later, at which time the body is parsed and saved to my database.

Is this more likely to be an issue with my Node application or a problem with my server, which is an EC2 small instance running Amazon Linux? How is it that it’s taking 2 minutes from the time the packet with body of the request arrives until it’s passed as a chunk to my application?

Thanks.

Update:
I modified parser.onBody in lib/http.js to log ‘b’ and I can see that this method is not being invoked until the end of the two minute delay. This seems to indicate that the problem is at a lower level than my application. I also changed ec2 instances, but that didn’t help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T22:09:58+00:00Added an answer on May 28, 2026 at 10:09 pm

    I was listening for ‘data’ events only after authenticating. I had req.on('data', function(chunk) {req.body += chunk}); in a callback after authenticating, not in the main listener function. Often the payload arrived before I started listening for it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get a JSON response from our server and the response
One of the pages in our web application polls the server approximately every 10
If you forward to approximately 13 minutes into this video by Eric Lippert he
I'm loading approximately 20 pictures of size 50-70K from server, then display them in
(Approximately) how many more bits of data must be transferred over the network during
What bit-rate (approximately) can I expect MPEG encoders to produce for 160x120 ok-quality webcam
How to calculate approximately the connection speed of a website using JavaScript? I want
I'd like to line up items approximately like this: item1 item2 i3 longitemname i4
I work on a large C# application (approximately 450,000 lines of code), we constantly
I have a MySQL table with approximately 3000 rows per user. One of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.