Skip to content

Wrong doc description of Query timeout option #3991

@zyf0330

Description

@zyf0330

Currently, the doc of QueryOptions.timeout is

  /**
   * Every operation takes an optional inactivity timeout option. This allows you to specify appropriate timeouts for
   * operations. It is important to note that these timeouts are not part of the MySQL protocol, and rather timeout
   * operations through the client. This means that when a timeout is reached, the connection it occurred on will be
   * destroyed and no further operations can be performed.
   */

Notice the first sentence Every operation takes an optional **inactivity** timeout option.
After I read the source code, I find that it is not timeout about inactivity of query, it is actually that timeout of duration from query start to end. And to Query.stream, it is from stream start read to the last read end.

Am I right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions