saintmike has asked for the wisdom of the Perl Monks concerning the following question:
This works in 99% of all cases, but I'm seeing sporadic failures under load and long lines (haven't been able to reproduce it in a standalone script) where IO::Handle->getline() from the pipe will not return all that has been stuffed into the pipe until the newline, but stops at 73,728 bytes which seems to be the pipe's capacity (google the number).
Are there situations where getline() (which seems to map into a scalar read from <fh>) won't read until a newline and there's no EOF either, but a momentary pipe clog?
I'm using IO::Handle 1.28 and perl 5.14.2, were there fixes for this issue that I overlooked when I briefly viewed the core changes?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: IO::Handle->getline() partial reads from pipe
by oiskuu (Hermit) on Dec 18, 2013 at 21:09 UTC | |
Re: IO::Handle->getline() partial reads from pipe
by choroba (Cardinal) on Dec 18, 2013 at 22:38 UTC | |
by andal (Hermit) on Dec 19, 2013 at 11:00 UTC | |
Re: IO::Handle->getline() partial reads from pipe
by wazat (Monk) on Dec 19, 2013 at 06:14 UTC | |
by saintmike (Vicar) on Dec 19, 2013 at 17:32 UTC | |
by wazat (Monk) on Dec 19, 2013 at 20:49 UTC | |
by oiskuu (Hermit) on Dec 19, 2013 at 20:01 UTC | |
Re: IO::Handle->getline() partial reads from pipe
by vsespb (Chaplain) on Dec 22, 2013 at 16:04 UTC |