Tidy up warnings and tests:

* Enable WebSocket frame tests
* Remove read_message_max warning
* Remove permessage-deflate check offer warning
This commit is contained in:
Vinnie Falco
2017-02-02 08:51:53 -05:00
parent dc5b5b818c
commit 615e80dacd
4 changed files with 6 additions and 15 deletions

View File

@ -1,3 +1,9 @@
1.0.0-b26
* Tidy up warnings and tests
--------------------------------------------------------------------------------
1.0.0-b25
* Fixes for WebSocket echo server

View File

@ -435,17 +435,7 @@ read_fh2(detail::frame_header& fh,
code = close_code::too_big;
return;
}
//rd_.size += fh.len;
}
#if 0
if(rd_msg_max_ && rd_.size > rd_msg_max_)
{
code = close_code::too_big;
return;
}
#else
#pragma message("Disabled close_code::too_big for permessage-deflate!")
#endif
rd_.cont = ! fh.fin;
}
code = close_code::none;

View File

@ -220,7 +220,6 @@ do_response(http::response<Body, Fields> const& res,
pmd_read(offer, res.fields);
// VFALCO see if offer satisfies pmd_config_,
// return an error if not.
#pragma message("Check offer in do_response")
pmd_config_ = offer; // overwrite for now
open(detail::role_type::client);
}

View File

@ -229,12 +229,8 @@ public:
void run() override
{
testCloseCodes();
#if 0
testFrameHeader();
testBadFrameHeaders();
#else
#pragma message("Disabled testFrameHeader, testBadFrameHeaders for permessage-deflate!")
#endif
}
};