diff --git a/examples/wsperf/case.hpp b/examples/wsperf/case.hpp index 04590644da..66b67c142d 100644 --- a/examples/wsperf/case.hpp +++ b/examples/wsperf/case.hpp @@ -199,7 +199,7 @@ public: //std::cout << " fails in " << len.length() << std::endl; } void on_fail(connection_ptr con) { - std::cout << " fails to connect." << std::endl; + m_data = "{\"result\":\"connection_failed\"}"; } const std::string& get_result() const { diff --git a/examples/wsperf/wsperf.cpp b/examples/wsperf/wsperf.cpp index 60146cefe7..c986276605 100644 --- a/examples/wsperf/wsperf.cpp +++ b/examples/wsperf/wsperf.cpp @@ -52,7 +52,7 @@ struct request { std::string req; std::string token; - // test_message:uri=ws://localhost:9000;size=4096;count=1000;timeout=10000;binary=true;sync=true;correctness=exact; + // message_test:uri=ws://localhost:9000;size=4096;count=1000;timeout=10000;binary=true;sync=true;correctness=exact;token=foo; void process() { std::vector tests;