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

Question about timing the server processing #16

Open
haggen opened this issue Feb 1, 2020 · 0 comments
Open

Question about timing the server processing #16

haggen opened this issue Feb 1, 2020 · 0 comments
Labels
question Further information is requested

Comments

@haggen
Copy link

haggen commented Feb 1, 2020

I can see in the line below that what you call ServerProcessing is the time between when the connection's been established and we get the response's first byte.

https://github.com/rogerwelin/cassowary/blob/master/pkg/client/load.go#L117

But according to Go's httptrace docs there's a hook called WroteRequest that seems to me more accurate to the start of the remote server process.

I remember digging a little deeper into the request's lifecycle when I wrote a similar feature but I'm no expert so it's just me being curious.

Why did you go with GotConn hook instead?

Thanks in advance.

@rogerwelin rogerwelin added the question Further information is requested label Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants