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

First pass at removing panics in Context.JSON and Context.Render #952

Closed
wants to merge 1 commit into from

Conversation

themartorana
Copy link

Fix for #852 - removes panics from closed streams and returns errors.

Currently a single broken pipe can bring down an entire server serving thousands of requests. The panic is too aggressive, and requires attempting to recover on every single request/response pair.

Mostly open for discussion, but I'd like to see the panics removed at this level. Thanks!

@codecov-io
Copy link

codecov-io commented Jun 19, 2017

Codecov Report

Merging #952 into master will increase coverage by 0.3%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #952     +/-   ##
=========================================
+ Coverage   93.16%   93.46%   +0.3%     
=========================================
  Files          15       15             
  Lines        1288     1286      -2     
=========================================
+ Hits         1200     1202      +2     
+ Misses         76       74      -2     
+ Partials       12       10      -2
Impacted Files Coverage Δ
context.go 88.06% <100%> (+1.53%) ⬆️

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 d5b353c...4a1434a. Read the comment docs.

@themartorana themartorana mentioned this pull request Jun 19, 2017
@appleboy
Copy link
Member

Wrong branch. Please see the contribution guide.

@themartorana
Copy link
Author

Apologies, will re-open against develop.

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

Successfully merging this pull request may close these issues.

None yet

3 participants