• Vladislav Vaintroub's avatar
    MDEV-21101 unexpected wait_timeout with pool-of-threads · 71015d84
    Vladislav Vaintroub authored
    Due to restricted size of the threadpool, execution of client queries can
    be delayed (queued) for a while. This delay was interpreted as client
    inactivity, and connection is closed, if client idle time + queue time
    exceeds wait_timeout.
    
    But users did not expect queue time to be included into wait_timeout.
    
    This patch changes the behavior. We don't close connection anymore,
    if there is some unread data present on connection,
    even if wait_timeout is exceeded. Unread data means that client
    was not idle, it sent a query, which we did not have time to process yet.
    71015d84
threadpool_common.cc 11.9 KB