Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 [Bug]: Prefork Not Working on Fiber v3 #2975

Closed
wescamco opened this issue Apr 16, 2024 · 2 comments
Closed

馃悰 [Bug]: Prefork Not Working on Fiber v3 #2975

wescamco opened this issue Apr 16, 2024 · 2 comments

Comments

@wescamco
Copy link

wescamco commented Apr 16, 2024

When I try to enable Prefork, I get an error that there is no such line in fiber.Config. As I understand it, there should be "Prefork bool json:"prefork"", in the file app.go. Or do the developers have a brilliant idea?

Copy link

welcome bot commented Apr 16, 2024

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

@gaby
Copy link
Member

gaby commented Apr 16, 2024

@wescamco This was moved to ListenConfig https://github.com/gofiber/fiber/blob/main/listen.go#L95

Example:

app := fiber.New()
app.Listen(":3000", ListenConfig{EnablePrefork: true})

@gaby gaby closed this as completed Apr 16, 2024
@gaby gaby changed the title Prefork Not Working on Fiber 3.0.0-beta.2 馃悰 [Bug]: 馃悰 [Bug]: Prefork Not Working on Fiber 3.0.0-beta.2 Apr 16, 2024
@gaby gaby changed the title 馃悰 [Bug]: Prefork Not Working on Fiber 3.0.0-beta.2 馃悰 [Bug]: Prefork Not Working on Fiber v3 Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants