http: abort when closing with pipelining requests in flight
See original GitHub issue- Version: v16.0.0
- Platform: linux
- Subsystem: http
What steps will reproduce the bug?
Checkout https://github.com/fastify/fastify and run npm i
:
$ node test/close-pipelining.test.js
TAP version 13
# Subtest: Should return 503 while closing - pipelining
ok 1 - should not error
node[1156327]: ../src/node_http_parser.cc:567:static void node::{anonymous}::Parser::Initialize(const v8::FunctionCallbackInfo<v8::Value>&): Assertion `args[3]->IsInt32()' failed.
1: 0xb12b00 node::Abort() [node]
2: 0xb12b7e [node]
3: 0xb2a282 [node]
4: 0xd5f70b [node]
5: 0xd60bac [node]
6: 0xd61226 v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) [node]
7: 0x160c579 [node]
Aborted
I will work on a closed reproduction soon.
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior?
not abort
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Properly aborting HTTP request/response exchange on error
In a way, we want to abort the "request/response" exchange without necessarily closing the underlying http connection since we are taking advantage of...
Read more >Akka-Http client shuts down connection pool while request is ...
Occasionally the akka-http client we use will close the connection pool for a host before we receive the response from an in-flight request....
Read more >How you can abort Fetch() request on a flight… | by Oleg Lytvyn
Axios has build-in cancel() method which gives you an opportunity to abort requests which aren't yet resolved or rejected. So if you do...
Read more >HTTP/1.1: Connections
A client, server, or proxy MAY close the transport connection at any time. For example, a client might have started to send a...
Read more >What is the difference between HTTP pipelining and creating ...
However, when you're using multiple threads, there's a huge difference between pipelining requests over a single HTTP connection, and having each thread ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ah, awesome. Glad it worked!
Ah,
npm test
fails indeed.