title: JDBC Statement cancelled due to time out or client request
body: <pre><code>com.mysql.jdbc.exceptions.MySQLTimeoutException: Statement cancelled due to time out or client request
          com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1442)
  </code></pre>
  
  <p>Some code:</p>
  
  <pre><code>@Override
  public synchronized ResultSet query(String s) throws SQLException {     
      try {
          Statement statement = connection.createStatement();
  
          statement.setQueryTimeout(3);
  </code></pre>
  
  <p>So I'm saving user data on SQL and this sometimes happens, it's very rare, but still. I would like to know why this could be happening.</p>