• Monty's avatar
    Fixed "Packets out of order" warning message on stdout in clients, · 5932fa78
    Monty authored
    compiled for debugging, when the server goes down
    
    This happens in the following scenario:
    - Server gets a shutdown message
    - Servers sends error ER_CONNECTION_KILLED to the clients connection
    - The client sends a query to the server, before the server has time to
      close the connection to the client
    - Client reads the ER_CONNECTION_KILLED error message
    
    In the above case, the packet number for the reply is one less than
    what the client expected and the client prints "Packets out of order".
    
    Fixed the following way:
    - The client accepts now error packages with a packet number
      one less than expected.
    - To ensure that this issue can be detected early in my_real_read(), error
      messages sent to the client are not compressed, even when compressed protocol is used.
    5932fa78
mysql_com.h 26.3 KB