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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [Bug]: fiber prefork on windows #3111

Open
3 tasks done
lorypelli opened this issue Aug 24, 2024 · 12 comments
Open
3 tasks done

🐛 [Bug]: fiber prefork on windows #3111

lorypelli opened this issue Aug 24, 2024 · 12 comments

Comments

@lorypelli
Copy link

Bug Description

it cause issue in the terminal

How to Reproduce

Create a fiber http server with prefork enable and try to start it

Expected Behavior

it should show fiber startup message, instead it starts to printing randoms things with randoms letters and numbers

Fiber Version

2.52.5

Code Snippet (optional)

No response

Checklist:

  • I agree to follow Fiber's Code of Conduct.
  • I have checked for existing issues that describe my problem prior to opening this one.
  • I understand that improperly formatted bug reports may be closed without explanation.
Copy link

welcome bot commented Aug 24, 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

@lorypelli
Copy link
Author

image
image
image

@lorypelli
Copy link
Author

without prefork it works as expected
https://github.com/lorypelli/server

@gaby
Copy link
Member

gaby commented Aug 24, 2024

Isnt prefork a Linux feature?

@lorypelli
Copy link
Author

Isnt prefork a Linux feature?

eh? On linux it doesn't seem to happen

@gaby
Copy link
Member

gaby commented Aug 24, 2024

@lorypelli Try a simple server with prefork and a GET router without using https://github.com/pterm/pterm

The weird text you are seeing is related to pterm not fiber

@lorypelli
Copy link
Author

@lorypelli Try a simple server with prefork and a GET router without using https://github.com/pterm/pterm

The weird text you are seeing is related to pterm not fiber

But why does it work without prefork enabled?

@gaby
Copy link
Member

gaby commented Aug 24, 2024

I'm not sure, prefork will run multiple processes using the same port. Maybe that affects pterm?

Try it without pterm first to confirm it works without it

@gaby
Copy link
Member

gaby commented Sep 6, 2024

@lorypelli Were you able to solve your issue?

@Skyenought
Copy link
Member

image
Actually it may be related to the encoding of your language, you can try something like utf-8.

This program runs on my windows terminal without any problems.

@lorypelli
Copy link
Author

image
Actually it may be related to the encoding of your language, you can try something like utf-8.

This program runs on my windows terminal without any problems.

Is prefork enabled? If not, try enabling it

@Skyenought
Copy link
Member

ok, i found my mistake

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

3 participants