mirror of
https://github.com/aria2/aria2.git
synced 2025-02-16 04:07:49 +00:00
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
This commit is contained in:
parent
9a7fe58c57
commit
5b8358b4d5
@ -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>
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user