18 Oct
2006
18 Oct
'06
11:35 p.m.
Robert Ramey writes:
Christian Rössel wrote:
What is the correct way to read the entire archive without throwing an exception?
I think the "correct way is to be sure the archive is destroyed before sending. This should append a /n at the end - (at least in 1.34 - this might be a problem with previous versions - or maybe not.)
I was about to ask whether a delimiter was being put in the output or not. It also sounds like the delimiter passed to read_until() should be "\n" and not "\r\n". Is there a guarantee that a "\n" delimiter will not occur in the middle of the serialised output? If it can appear, then using read_until does not sound like the right approach. Cheers, Chris