Skip to content

Commit

Permalink
fail interval fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
yedf committed Nov 15, 2015
1 parent e72f450 commit 4a3ac26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 1kw/1kw-cli.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int main(int argc, const char* argv[]) {
int c = conn_count / create_seconds;
for (int i = 0; i < c; i++) {
short port = begin_port + (i % (end_port - begin_port));
auto con = TcpConn::createConnection(&base, host, port, 20*000);
auto con = TcpConn::createConnection(&base, host, port, 20*1000);
allConns.push_back(con);
con->setReconnectInterval(20*1000);
con->onMsg(new LengthCodec, [&](const TcpConnPtr& con, const Slice& msg) {
Expand Down

0 comments on commit 4a3ac26

Please sign in to comment.