I'm not sure if I understand your setup correctly. Maybe you can show us a small ASCII-art image telling us which program is the server/parent and which is the client/child and how they are supposed to interact?
From your description I think that your child is written in Perl and you want to connect to the child via a named pipe, write to it, and then keep on reading from the named pipe the response, and hope that you will not block writing.
I think you should basically be able to achieve that by not writing anything from the child until it has read all the input and the input stream returns eof.
Barring that, have you considered having your child process simply writing its response to a file? That way, you can seek within the file to your hearts content. Just flush the filehandle from the child after you've written all the data.
There is a reason why one usually prepends the length of the expected input to the requests :)
In reply to Re: Increase IO buffer
by Corion
in thread Increase IO buffer
by antivirus64
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |