Skip to content

Instantly share code, notes, and snippets.

View dattp's full-sized avatar

DatPT dattp

View GitHub Profile
@shuhei
shuhei / headers-timeout-keep-alive.js
Created April 28, 2019 18:08
A test case for server.headersTimeout + keep alive (fails on Node v10.15.2 and newer)
const http = require("http");
const net = require("net");
const server = http.createServer((req, res) => {
req.resume();
res.end("hello");
});
server.keepAliveTimeout = 6 * 1000;
server.headersTimeout = 4 * 1000;
version: "2"
services:
db:
image: mysql
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --init-connect='SET NAMES UTF8; SET CHARACTER SET utf8mb4;'
ports:
- "3406:3306"
environment:
MYSQL_ROOT_PASSWORD: root
elasticsearch: