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

No concurrent request handling #2

Open
ahmetb opened this issue Jan 8, 2021 · 0 comments
Open

No concurrent request handling #2

ahmetb opened this issue Jan 8, 2021 · 0 comments

Comments

@ahmetb
Copy link

ahmetb commented Jan 8, 2021

Using your code, if I make a handler like:

func handler(w http.ResponseWriter, r *http.Request) {
	time.Sleep(time.Second * 5)
	fmt.Fprintf(w, "This request is served over h2c!")
}

and make two requests at the same time, one returns in 5 seconds, the other one returns in 10 seconds.

I think you need a go statement like go server.ServeConn in the example code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant