Commit 87da3cd1 authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[master] Fixing hang in the text causing memory corruption and hang.

Okayed on Jabber.
parent 5beebe49
......@@ -318,7 +318,8 @@ TEST_F(CtrlAgentCommandMgrTest, failForwardToServer) {
/// Check that control command is not forwarded if the service is not specified.
TEST_F(CtrlAgentCommandMgrTest, noService) {
testForward(CtrlAgentCfgContext::TYPE_DHCP6, "",
-1, -1, 0);
/// Check that error is returned to the client when the server to which the
......@@ -61,7 +61,13 @@ public:
/// @param bytes_transferred Number of bytes received.
readHandler(const boost::system::error_code&, size_t bytes_transferred) {
readHandler(const boost::system::error_code& ec,
size_t bytes_transferred) {
// This is most likely due to the abort.
if (ec) {
if (!custom_response_.empty()) {
boost::asio::buffer(custom_response_.c_str(), custom_response_.size()));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment