Closed loynoir closed 3 years ago
Possibly related to https://github.com/sindresorhus/got/issues/1385
Can you create an example server in Node.js please?
Hi, @szmarczak Node.js version example server updated.
Hmm... It works as expected on Node.js 12, but fails on Node.js 14...
Duplicate of #1385
Describe the bug
I am a new user following README.md, combining option
cache
and optionagent
together. By doing this, response may never come out, or hangs forever.Map
, response never come out.KeyvRedis
, response hangs forever.Actual behavior
early exit or hangs forever
Expected behavior
Code to reproduce
Server
Any server running at
http://127.0.0.1:5000
, can response different content to different connection, response same content to same connection.Simple Server
```js const express = require('express'); const port = process.argv[2]; const app = express(); const host = '127.0.0.1'; const keepAliveTimeout = 60000; app.get('/', (req, res) => { // const clientPort = req.connection.remotePort; const clientPort = req.socket.remotePort; res.send(clientPort.toString()); }); const srv = app.listen(port, host, () => { console.log(`app listening at ${host}:${srv.address().port}`); }); srv.keepAliveTimeout = keepAliveTimeout; ```Simple Server Test
Client
Checklist