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

server/requestlog: responseStats should implement http.Hijacker #2737

Merged
merged 1 commit into from Feb 5, 2020

Conversation

alexsn
Copy link
Contributor

@alexsn alexsn commented Feb 5, 2020

responseStats should support connection hijacking if underlying response
writer does.

Signed-off-by: Alex Snast alexsn@fb.com

responseStats should support connection hijacking if underlying response
writer does.

Signed-off-by: Alex Snast <alexsn@fb.com>
@googlebot googlebot added the cla: yes Google CLA has been signed! label Feb 5, 2020
@alexsn
Copy link
Contributor Author

alexsn commented Feb 5, 2020

Currently websocket upgrades fails when using requestlog middleware as the wrapped response writer doesn't implement http.Hijacker.

@codecov
Copy link

codecov bot commented Feb 5, 2020

Codecov Report

Merging #2737 into master will increase coverage by 0.03%.
The diff coverage is 12.5%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2737      +/-   ##
==========================================
+ Coverage   68.29%   68.33%   +0.03%     
==========================================
  Files         115      115              
  Lines       13274    13281       +7     
==========================================
+ Hits         9065     9075      +10     
+ Misses       3548     3544       -4     
- Partials      661      662       +1
Impacted Files Coverage Δ
server/requestlog/requestlog.go 73.49% <12.5%> (-6.77%) ⬇️
runtimevar/filevar/filevar.go 87.15% <0%> (+1.83%) ⬆️
server/health/sqlhealth/sqlhealth.go 80.95% <0%> (+19.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d780487...284ce3f. Read the comment docs.

@vangent vangent merged commit c5701e0 into google:master Feb 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA has been signed!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants