Closed GoogleCodeExporter closed 9 years ago
Hi Gabor,
Thanks for the fix.
Can you please check if the fix in SVN r22 will work for you?
Basically it uses a copy of Header when dispatching the incoming
message event, so that changing the header will not affect the
lastReadHeader values. This is different than your patch which uses a
copy during the Stream.send() function. But I think using a copy
initially itself is more safe and clean.
I am also attaching the diff here. Thanks again and please let us know
when you get time if your problem is solved with this patch.
--- rtmp.py (revision 21)
+++ rtmp.py (working copy)
@@ -279,7 +279,9 @@
else:
# if _debug: print 'Protocol.parseMessage updated
old incomplete'
data, self.incompletePackets[channel] =
data[:header.size], data[header.size:]
- msg = Message(header, data)
+
+ hdr = Header(header.channel, header.time,
header.size, header.type, header.streamId)
+ msg = Message(hdr, data)
if _debug: print 'Protocol.parseMessage msg=', msg
try:
if channel == Protocol.PROTOCOL_CHANNEL_ID:
---
Hi,
I have changed it after this email in a similar way.
Only a short note: please watch at lastWriteHeader, too.
There is the same :)
I will check the subversion patch and notice you. :)
Bye
Original comment by voiprese...@gmail.com
on 4 Feb 2011 at 11:36
Original issue reported on code.google.com by
voiprese...@gmail.com
on 4 Feb 2011 at 11:35