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 — HTTP Parser issues with newline `\n` · Issue #34576 · nodejs/node Closed Labels httpIssues and PRs related to the http subsystem. DescriptionThe following issue was found while working against a CouchDB changes stream which uses a newline OS: MacOS, Node 14.6 Will invoke Refs: https://github.com/mcollina/undici/issues/268 const net = require('net') const { HTTPParser } = process.binding('http_parser') // eslint-disable-line net.createServer(socket => { socket.write('HTTP/1.1 200 OK\r\n') socket.write('Transfer-Encoding: chunked\r\n\r\n') setInterval(() => { socket.write('1\r\n') socket.write('\n\r\n') }, 500) }).listen(3111) const socket = net.connect(3111, '127.0.0.1') const parser = new HTTPParser(HTTPParser.RESPONSE, false) parser.initialize( HTTPParser.RESPONSE, {}, 0, false, 1e3 ) parser[HTTPParser.kOnTimeout] = () => { console.log('kOnTimeout') } parser[HTTPParser.kOnHeaders] = (rawHeaders) => { console.log('kOnHeaders') } parser[HTTPParser.kOnExecute] = (ret) => { console.log('kOnExecute') } parser[HTTPParser.kOnHeadersComplete] = (versionMajor, versionMinor, rawHeaders, method, url, statusCode, statusMessage, upgrade, shouldKeepAlive) => { console.log('kOnHeadersComplete') } parser[HTTPParser.kOnBody] = (chunk, offset, length) => { console.log('kOnBody') } parser[HTTPParser.kOnMessageComplete] = () => { console.log('kOnMessageComplete') } parser.consume(socket._handle) Activity
MetadataMetadataAssigneesLabelshttpIssues and PRs related to the http subsystem. 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. |