Making a pipes buffer bigger

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
nwalthamAsked:
Who is Participating?
 
kiffneyCommented:
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
 
nwalthamAuthor Commented:
I should say that the programming environment is C++

Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.