Reproduction test case of a basic streaming pipeline destroying it's socket
It streams the results of a PostgreSQL query.
Simulating an SQL query error, i.e statement_timeout
will automatically destroy the underlying response socket.
As a result, an H13 error will be logged.
There is no straightforward way to do proper HTTP error handling.
Required:
- Node.js v22+
- Running Postgres database
Git clone, then:
npm i
Create a DB table evtx
with ~1000
events, each ~ 3KB
.
DATABASE_URL=<database-url> npm run seed
DATABASE_URL=<database-url> npm start
then visit http://localhost:5008
@nicholaswmin, Nik Kyriakides, Bitpaper LTD