Displaying 1 result from an estimated 1 matches for "metachunk1chunk2".
2008 Feb 07
6
Buffer flushing
...- the file contents (chunked). I found a silly bug:
receive_data() gets marshalled metadata and the first chunk of the
file in a single variable.
Like that:
c1.send_data("meta")
c1.send_data("chunk1")
c1.send_data("chunk2")
receiver.receive_data(data): data == "metachunk1chunk2"
I have two possible solutions:
1) Some kind of flush between some of the #send_data calls
2) Explicitly split incoming data
The first one looks better, but i don''t know is it a right design
decision.
Thanks in advance.
Oleg Andreev (oleganza)