Error: Error: Read packet timeout in DENO
Error: Error: Read packet timeout in DENO
我 运行 在 deno-mysql 中读取数据包超时。奇怪的是,这在远程和本地服务器中都会发生。服务器还可以。 Deno 运行 也不错。但现在我的问题是在执行查询时,初始请求会产生错误“错误:错误:读取数据包超时”但令人惊讶的是,第二次请求时,即第二次点击。 MySQL 查询按预期执行。
隧道里有光。我看到 idle-timeout 属性已添加到配置中。结构如下
export interface ClientConfig {
/** Database hostname */
hostname ? : string;
/** Database UNIX domain socket path. When used, `hostname`
and `port` are ignored. */
socketPath ? : string;
/** Database username */
username ? : string;
/** Database password */
password ? : string;
/** Database port */
port ? : number;
/** Database name */
db ? : string;
/** Whether to display packet debugging information */
debug ? : boolean;
/** Connection read timeout (default: 30 seconds) */
timeout ? : number;
/** Connection pool size (default: 1) */
poolSize ? : number;
/** Connection pool idle timeout in microseconds (default: 4
hours) */
idleTimeout ? : number;
/** charset */
charset ? : string;
}
查看deno_mysql
或者更具体地说 deno_mysql/pull/81
我 运行 在 deno-mysql 中读取数据包超时。奇怪的是,这在远程和本地服务器中都会发生。服务器还可以。 Deno 运行 也不错。但现在我的问题是在执行查询时,初始请求会产生错误“错误:错误:读取数据包超时”但令人惊讶的是,第二次请求时,即第二次点击。 MySQL 查询按预期执行。
隧道里有光。我看到 idle-timeout 属性已添加到配置中。结构如下
export interface ClientConfig {
/** Database hostname */
hostname ? : string;
/** Database UNIX domain socket path. When used, `hostname`
and `port` are ignored. */
socketPath ? : string;
/** Database username */
username ? : string;
/** Database password */
password ? : string;
/** Database port */
port ? : number;
/** Database name */
db ? : string;
/** Whether to display packet debugging information */
debug ? : boolean;
/** Connection read timeout (default: 30 seconds) */
timeout ? : number;
/** Connection pool size (default: 1) */
poolSize ? : number;
/** Connection pool idle timeout in microseconds (default: 4
hours) */
idleTimeout ? : number;
/** charset */
charset ? : string;
}
查看deno_mysql 或者更具体地说 deno_mysql/pull/81