|
@@ -6,10 +6,10 @@ const app = express();
|
|
|
const mysql = require('mysql2')
|
|
|
const SendSeekable = require('send-seekable');
|
|
|
const pool = mysql.createPool({
|
|
|
- keepAliveInitialDelay: 300, enableKeepAlive: true,
|
|
|
+ keepAliveInitialDelay: 0, enableKeepAlive: true,
|
|
|
})
|
|
|
const db = mysql.createConnection({
|
|
|
- host: 'mc.andyxie.cn', user: 'instrunet', password: 'Moyingren2015', database: "instrunet_data", pool: pool,
|
|
|
+ host: 'mc.andyxie.cn', user: 'instrunet', password: 'Moyingren2015', database: "instrunet_data", pool: pool,enableKeepAlive: true, keepAliveInitialDelay: 0,
|
|
|
})
|
|
|
const nodemailer = require('nodemailer')
|
|
|
|