Skip to content

Commit

Permalink
Remove assert() for unknown commands #859
Browse files Browse the repository at this point in the history
  • Loading branch information
renecannao committed Dec 30, 2016
1 parent 42ca44c commit b56ebc6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/MySQL_Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1795,7 +1795,10 @@ int MySQL_Session::handler() {
handler___status_WAITING_CLIENT_DATA___STATE_SLEEP___MYSQL_COM_PROCESS_KILL(&pkt);
break;
default:
assert(0);
proxy_error("RECEIVED AN UNKNOWN COMMAND: %d -- PLEASE REPORT A BUG\n", c);
l_free(pkt.size,pkt.ptr);
return -1; // immediately drop the connection
// assert(0); // see issue #859
break;
}
break;
Expand Down

0 comments on commit b56ebc6

Please sign in to comment.