better wsperf error message on connection fail

This commit is contained in:
Peter Thorson
2012-03-05 11:40:49 -06:00
parent 6e768d5816
commit 133a313b02
2 changed files with 2 additions and 2 deletions

View File

@@ -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 {

View File

@@ -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<wsperf::case_handler_ptr> tests;