• unknown's avatar
    Bug#2845 client fails to reconnect if using TCP/IP · d430e247
    unknown authored
    - Detect that connection to server has been broken in "net_clear". Since 
      net_clear is always called before we send command to server, we can be sure
      that server has not received the command.
    
    
    mysql-test/r/wait_timeout.result:
      Update test result
    mysql-test/t/wait_timeout-master.opt:
      Decrease wait_timeout value to avoid unneccessary sleeps
    mysql-test/t/wait_timeout.test:
      Test that same error message is returned when disconnected regardless of connection is socket or TCP
      Decrease sleep times
    sql/net_serv.cc:
      Make "net_clear" detect if connection with server has been broken by 
      performing a select. If the select returns that there are data to read but
      no data can be read, that means the connection is broken. Signal disconnected
      to "write" functions by setting error to 2.
    d430e247
wait_timeout.test 699 Bytes