nicholaswmin / h13-stream-repro

Reproduction test case of a basic streaming pipeline destroying it's socket

Home Page:https://repro.bitpaper.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

h13-stream-repro

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.

Install

Required:

Git clone, then:

npm i

Seed DB Data

Create a DB table evtx with ~1000 events, each ~ 3KB.

DATABASE_URL=<database-url> npm run seed

Run

DATABASE_URL=<database-url> npm start

then visit http://localhost:5008

Authors

@nicholaswmin, Nik Kyriakides, Bitpaper LTD

About

Reproduction test case of a basic streaming pipeline destroying it's socket

https://repro.bitpaper.io

License:MIT License


Languages

Language:HTML 50.0%Language:JavaScript 50.0%