[Red5commits] [1069] fixed wrong sizes in SO responses
jbauch
luke at codegent.com
Thu Jun 29 09:10:07 EDT 2006
fixed wrong sizes in SO responses
Timestamp: 06/29/06 22:55:39 (less than one hour ago)
Change: 1069
Author: jbauch
Files (see diff or trac for details):
java/server/trunk/src/org/red5/server/net/rtmp/codec/RTMPProtocolEncoder.java
Trac: http://mirror1.cvsdude.com/trac/osflash/red5/changeset/1069
Index: /java/server/trunk/src/org/red5/server/net/rtmp/codec/RTMPProtocolEncoder.java
===================================================================
--- /java/server/trunk/src/org/red5/server/net/rtmp/codec/RTMPProtocolEncoder.java (revision 1043)
+++ /java/server/trunk/src/org/red5/server/net/rtmp/codec/RTMPProtocolEncoder.java (revision 1069)
@@ -213,5 +213,5 @@
out.skip(4); // we will be back
Output.putString(out,event.getKey());
- len = out.position() - mark;
+ len = out.position() - mark - 4;
out.putInt(mark,len);
break;
@@ -234,5 +234,5 @@
serializer.serialize(output, initialData.get(key));
- len = out.position() - mark;
+ len = out.position() - mark - 4;
out.putInt(mark,len);
}
@@ -246,5 +246,5 @@
serializer.serialize(output,event.getValue());
- len = out.position() - mark;
+ len = out.position() - mark - 4;
out.putInt(mark,len);
}
@@ -281,5 +281,5 @@
final Output output2 = new Output(out);
serializer.serialize(output2, event.getValue());
- len = out.position() - mark;
+ len = out.position() - mark - 4;
out.putInt(mark,len);
break;
Note:
Diffs are chopped if more than 30k.
This is to get past the limit on the mailing list.
More information about the Red5commits
mailing list