ソースを参照

I forgot to commit PeerConnection.h

2008-01-10  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>

	Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
	payload length(4bytes) are received. This happens because lenbufLength
	is not updated in this particular case and successive call of
	receiveMessage() overwrites payload length with bytes recieved which
	are payload body.
	* src/PeerConnection.{h, cc}
	* src/message.h
Tatsuhiro Tsujikawa 18 年 前
コミット
5b8358b4d5
2 ファイル変更2 行追加2 行削除
  1. 1 1
      ChangeLog
  2. 1 1
      src/PeerConnection.h

+ 1 - 1
ChangeLog

@@ -5,7 +5,7 @@
 	is not updated in this particular case and successive call of
 	receiveMessage() overwrites payload length with bytes recieved which
 	are payload body.
-	* src/PeerConnection.cc
+	* src/PeerConnection.{h, cc}
 	* src/message.h
 
 2008-01-10  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>

+ 1 - 1
src/PeerConnection.h

@@ -54,7 +54,7 @@ private:
   char resbuf[MAX_PAYLOAD_LEN];
   int32_t resbufLength;
   int32_t currentPayloadLength;
-  unsigned char lenbuf[4];
+  char lenbuf[4];
   int32_t lenbufLength;
 
 public: