Skip to content

Commit

Permalink
bugfix: reset wbuf_pos when expand error
Browse files Browse the repository at this point in the history
  • Loading branch information
KernelMaker committed Apr 18, 2016
1 parent 5d62731 commit 32ab68f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pika_client_conn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ int PikaClientConn::DealMessage() {
LOG(WARNING) << "wbuf is too large";
memcpy(wbuf_, "-ERR buf is too large\r\n", 23);
wbuf_len_ = 23;
wbuf_pos_ = 0;
set_is_reply(true);
return 0;
}
Expand Down

0 comments on commit 32ab68f

Please sign in to comment.