GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — compat: stream:error -> [res|res]:error broadcasting · Issue #168 · nodejs/http2
This repository was archived by the owner on Jul 6, 2018. It is now read-only.
This repository was archived by the owner on Jul 6, 2018. It is now read-only.
compat: stream:error -> [res|res]:error broadcasting #168Copy link Copy link Closed DescriptionI'm using Current code: const noop = () => {} request.on('error', noop) response.on('error', noop) response.stream.on('error', () => { request.removeListener('error', noop) response.removeListener('error', noop) if (response.stream.destroyed === false) { response.writeHead(500, {'content-type': 'text/plain'}) response.end('Internal Server Error') } }) response.stream.respondWithFile('/my/file/path', response.getHeaders()) Desired code: response.stream.on('error', () => { if (response.stream.destroyed === false) { response.writeHead(500, {'content-type': 'text/plain'}) response.end('Internal Server Error') } }) response.stream.respondWithFile('/my/file/path', response.getHeaders()) What would be needed is to rename or stop propagating stream error events. It's a very simple change in the two error event handlers (for res and req). However I'm hesitant because I don't know what the thought process was behind that broadcasting. Perhaps related, Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |