We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c97f6e commit cf808beCopy full SHA for cf808be
apps/coa-updater/index.ts
@@ -15,6 +15,13 @@ const poolParams = {
15
password: process.env.MYSQL_ROOT_PASSWORD,
16
multipleStatements: true,
17
permitLocalInfile: true,
18
+ // Prevent "socket has unexpectedly been closed" during long LOAD DATA operations
19
+ // (inducks_entry is large; default net_read_timeout/net_write_timeout is 60s)
20
+ sessionVariables: {
21
+ net_read_timeout: 1800, // 30 minutes
22
+ net_write_timeout: 1800, // 30 minutes
23
+ wait_timeout: 3600, // 1 hour
24
+ },
25
};
26
const pool = createPool(poolParams);
27
0 commit comments