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 8320025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:31:06+00:00 2026-06-08T22:31:06+00:00

According to http.js the ClientRequest.write(chunk,encoding) method of node’s http module is blocking: The control

  • 0

According to http.js the ClientRequest.write(chunk,encoding) method of node’s httpmodule is blocking: The control flow is paused until all data (the current one and all buffered data) is sent.

I want to simultaneously send a larger amount of data using several parallel connections. Is there any (direct) way of creating a non-blocking version of the method just like ClientRequest.write(chunk,encoding,callback) where the data is sent “in the background” and a callback handler (or event) is triggered when sending has been completed?

Thanks in advance!

  • 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-06-08T22:31:08+00:00Added an answer on June 8, 2026 at 10:31 pm

    Use Node’s Stream.pipe() to stream the data into multiple other streams.
    e.g:

    var w1 = fs.createWriteStream('input-1');
    var w2 = fs.createWriteStream('input-2');
    request.pipe(w1);
    request.pipe(w2);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

according to http://www.w3schools.com/dom/dom_node.asp , to get the text content of a node, textContent for
I have this chunk of code which I found and implemented according to http://www.activexperts.com/activmonitor/windowsmanagement/scripts/networking/windowsfirewall/
According to http://edgeapi.rubyonrails.org/classes/Rails/Railtie.html , if I write a Rails 3 plugin and I want
First off, according to http://msdn.microsoft.com/en-us/library/x0b5b5bc.aspx , the List.Find method is only listed as throwing
According to http://www.orafaq.com/node/855 The record in that table for Incomplete Join Trail Wrong way
According to http://www.html5samples.com/2010/03/html-5-canvas-the-2d-context-part-1/ This is the signature for the context.transform method context.transform(m11, m12, m21,
According to http://msdn.microsoft.com/en-us/library/ms810291.aspx , you can't change the ReadOnly attribute of an Expression based
According to http://lipas.uwasa.fi/~ts/info/proctips.html#orrules , you can make basic or rules in .procmailrc with something
According to http://jqueryui.com/demos/tabs , tabs that load content via AJAX will show Loading... while
According to http://www.codeguru.com/forum/showthread.php?t=463663 , C#'s getHashCode function in 3.5 is implemented as: public override

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.