Solved

Making a pipes buffer bigger

Posted on 2000-03-30
2
700 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
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

813 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now