antivirus64 has asked for the wisdom of the Perl Monks concerning the following question:
I'm implementing IPC API via named pipes. I've never done this before. I would like to skip the hassle of prepending the length of each messsage in the stream, so the other end knows how much bytes to read for each of them. My approach is to close the pipe every time a message ends, and then reopen it immediately before data needs to be transmitted again. My simple tests (with the help of cat), suggest that it is going to work as I want. However, I want to make sure that Perl is going to write to the pipe only after close $pipe. I read somewhere that the internal buffer is 8kb. How can I increase it? If it's possible to tell Perl not to write unless explicit close is invoked would be even better.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Increase IO buffer
by Corion (Patriarch) on May 31, 2017 at 19:07 UTC | |
|
Re: Increase IO buffer
by morgon (Priest) on Jun 01, 2017 at 01:48 UTC | |
|
Re: Increase IO buffer
by salva (Canon) on Jun 01, 2017 at 07:23 UTC | |
|
Re: Increase IO buffer
by kcott (Archbishop) on Jun 01, 2017 at 08:16 UTC |