From 133a313b027dc581a9e8148dd227115e41ba10e4 Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Mon, 5 Mar 2012 11:40:49 -0600 Subject: [PATCH] better wsperf error message on connection fail --- examples/wsperf/case.hpp | 2 +- examples/wsperf/wsperf.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;