Shorten MAX_BUFFER_LENGTH of MSEHandshake.

pull/1/head
Tatsuhiro Tsujikawa 2011-01-08 21:17:10 +09:00
parent 2ee68ec8ad
commit a2a91a2c74
1 changed files with 4 additions and 1 deletions

View File

@ -79,7 +79,10 @@ private:
static const size_t CRYPTO_BITFIELD_LENGTH = 4;
static const size_t MAX_BUFFER_LENGTH = 6*1024;
// The largest buffering occurs when receiver receives step2
// handshake. We believe that IA is less than or equal to
// BtHandshakeMessage::MESSAGE_LENGTH
static const size_t MAX_BUFFER_LENGTH = 636;
cuid_t cuid_;
SharedHandle<SocketCore> socket_;