Solved

Making a pipes buffer bigger

Posted on 2000-03-30
2
707 Views
Last Modified: 2008-02-01
Hello,
 How can I make the buffer of a pipe bigger. I am having the problem that the write blocks if I write too much before starting to read from the read side of the pipe.

Thanks in advance,
Nicholas Waltham
0
Comment
Question by:nwaltham
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

by:nwaltham
ID: 2669934
I should say that the programming environment is C++

Thanks
0
 
LVL 4

Accepted Solution

by:
kiffney earned 50 total points
ID: 2670058
Linux I think sticks with a buffer size of 4096 bytes for pipes.  You could use AF_UNIX sockets instead and avoid this problem that way, as you can customize the read and write buffer size in that protocol.  Read 'man 4 socket' which describes how to set the socket buffer size.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question