Skip to content

Instantly share code, notes, and snippets.

Root Cause Analysis: OIDC Listener TCP Accept Delays
The Smoking Gun: Processor Thread Starvation via Synchronous HTTP
There is a clear, plausible code-level explanation for why only the OIDC listener experiences TCP accept delays while the Kerberos listener on the same broker is
unaffected. The issue is a cascading backpressure chain caused by synchronous HTTP calls during SASL/OAUTHBEARER authentication.
The Chain of Events
Here's the exact code path that causes the problem:
#!/bin/bash
# Read JSON input from stdin
input=$(cat)
# Extract working directory
workdir=$(echo "$input" | jq -r '.workspace.current_dir')
# Extract context window data
usage=$(echo "$input" | jq '.context_window.current_usage')
#!/usr/bin/env python
import os
import sys
import datetime
import math
import json
config = json.loads(open('/usr/syno/etc/ssl/ssl.info/server.info').read())
x ~/osm2pgsql/build(master) $ cmake ..
-- Building osm2pgsql 0.91.0-dev
-- Boost version: 1.59.0
-- Found the following Boost libraries:
-- system
-- filesystem
CMake Error at /opt/local/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find PostgreSQL (missing: PostgreSQL_INCLUDE_DIR
PostgreSQL_TYPE_INCLUDE_DIR)
Call Stack (most recent call first):
threads = []
for i in 0..1
puts "parent: #{i}"
threads << Thread.new do
puts "child: #{i}"
end
end