Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 713
  • Last Modified:

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
0
nwaltham
Asked:
nwaltham
1 Solution
 
nwalthamAuthor Commented:
I should say that the programming environment is C++

Thanks
0
 
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

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now