You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an application, a part of the is a long process HTTP request.
For that I give the users the option to abort the request with the help of the AbortContoller in JavaScript.
The problem is that the fiber.Ctx.Context().Done() does not end when the abort signal is being transmitteed
How to Reproduce
Steps to reproduce the behavior:
A simple app would be enough.
constcontroller=newAbortController();constsignal=controller.signal;fetch('http://localhost:5000/',{ signal }).then(response=>response.text()).then(data=>console.log(data)).catch(error=>console.error('Fetch aborted',error));// Abort the request after 2 secondssetTimeout(()=>{controller.abort();},2000);
Expected Behavior
I would have expected that when the user use the Abort Signal, the case of ctx.Done() would fire up as it happening in the standard library
Fiber Version
2.54.2
Code Snippet (optional)
package main
import"github.com/gofiber/fiber/v3"import"log"funcmain() {
app:=fiber.New()
// Steps to reproducelog.Fatal(app.Listen(":3000"))
}
Thanks for opening your first issue here! 馃帀 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord
Bug Description
I have an application, a part of the is a long process HTTP request.
For that I give the users the option to abort the request with the help of the AbortContoller in JavaScript.
The problem is that the
fiber.Ctx.Context().Done()
does not end when the abort signal is being transmitteedHow to Reproduce
Steps to reproduce the behavior:
A simple app would be enough.
Expected Behavior
I would have expected that when the user use the Abort Signal, the case of
ctx.Done()
would fire up as it happening in the standard libraryFiber Version
2.54.2
Code Snippet (optional)
Checklist:
The text was updated successfully, but these errors were encountered: