Skip to content

Instantly share code, notes, and snippets.

View Dustinturner44's full-sized avatar
🎯
Focusing

Dustin Turner Dustinturner44

🎯
Focusing
View GitHub Profile
@Dustinturner44
Dustinturner44 / thundering-herd.pl
Created November 25, 2025 13:21 — forked from kazuho/thundering-herd.pl
thundering herd checker for select-accept pattern
#! /usr/bin/perl
#
# to test:
# 1) run this script with either "accept" or "select-accept" as the argument
# (the script listens to 127.0.0.1:12345)
# 2) telnet localhost 12345
# 3) if you see "accept failed", there is the thundering herd problem
#
#
use strict;
var settings = {
// Set to 'true' (without quotes) if run on Windows 64bit. Set to 'false' (without quotes) otherwise.
x64: true,
// Set to disk letter, where PhpStorm was installed to (e.g. C:)
disk_letter: 'C:',
// Set to folder name, where PhpStorm was installed to (e.g. 'PhpStorm')
folder_name: 'PhpStorm 2022.1.2',