We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How to reproduce:
1. Execute the next code:
func main() { server := fasthttp.Server{Handler: func(ctx *fasthttp.RequestCtx) { ctx.WriteString("OK") return }} go server.ListenAndServe("0.0.0.0:8000") println("Press ENTER to shutdown") bufio.NewReader(os.Stdin).ReadString('\n') println("Shutdown ...") startTime := time.Now() server.Shutdown() fmt.Printf("%v", time.Since(startTime)) }
2. Try to press ENTER after performing requests on 127.0.0.1:8000. The output something like that:
Press ENTER to shutdown Shutdown ... 36.1746735s
If you will try to press ENTER just after server started (without requests on 127.0.0.1:8000) - everything is ok:
Press ENTER to shutdown Shutdown ... 101.211041ms
The text was updated successfully, but these errors were encountered:
This has been fixed by #1155 in the just released v1.32.0
v1.32.0
Sorry, something went wrong.
No branches or pull requests
How to reproduce:
1. Execute the next code:
2. Try to press ENTER after performing requests on 127.0.0.1:8000. The output something like that:
If you will try to press ENTER just after server started (without requests on 127.0.0.1:8000) - everything is ok:
The text was updated successfully, but these errors were encountered: