Skip to content

Pass http.ServeTLS() errors back to the caller#2461

Merged
xla merged 4 commits intotendermint:developfrom
alessio:alessio/2460-StartHTTPAndTLSServer-doesnt-handle-ServeTLS-failures
Sep 21, 2018
Merged

Pass http.ServeTLS() errors back to the caller#2461
xla merged 4 commits intotendermint:developfrom
alessio:alessio/2460-StartHTTPAndTLSServer-doesnt-handle-ServeTLS-failures

Conversation

@alessio
Copy link
Contributor

@alessio alessio commented Sep 21, 2018

When http.ServeTLS() fails, StartHTTPAndTLSServer() logs the error then hangs for ever.
It should instead pass the error back to the caller.

Closes: #2460

  • Updated all relevant documentation in docs
  • Updated all code comments where relevant
  • Wrote tests
  • Updated CHANGELOG_PENDING.md

@codecov-io
Copy link

codecov-io commented Sep 21, 2018

Codecov Report

Merging #2461 into develop will increase coverage by 0.05%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop    #2461      +/-   ##
===========================================
+ Coverage    61.61%   61.66%   +0.05%     
===========================================
  Files          198      198              
  Lines        16292    16287       -5     
===========================================
+ Hits         10038    10044       +6     
+ Misses        5422     5413       -9     
+ Partials       832      830       -2
Impacted Files Coverage Δ
blockchain/pool.go 65.73% <0%> (-0.7%) ⬇️
libs/db/remotedb/grpcdb/client.go 0% <0%> (ø) ⬆️
p2p/pex/pex_reactor.go 74.33% <0%> (+0.33%) ⬆️
consensus/state.go 77.5% <0%> (+0.35%) ⬆️
consensus/reactor.go 73.82% <0%> (+0.53%) ⬆️
rpc/core/blocks.go 19.67% <0%> (+0.92%) ⬆️

@xla xla self-assigned this Sep 21, 2018
@xla xla added T:bug Type Bug (Confirmed) C:rpc Component: JSON RPC, gRPC labels Sep 21, 2018
Copy link
Contributor

@xla xla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 :octocat: :shipit: 🍡

Great fix, thanks for the PR.

Copy link
Contributor

@melekes melekes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing! See my comment related to StartHTTPServer function.

@xla xla dismissed melekes’s stale review September 21, 2018 16:11

Very valid concerns, but will require a more holistic overhaul.

@xla xla merged commit f11db8c into tendermint:develop Sep 21, 2018
@alessio alessio deleted the alessio/2460-StartHTTPAndTLSServer-doesnt-handle-ServeTLS-failures branch September 21, 2018 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C:rpc Component: JSON RPC, gRPC T:bug Type Bug (Confirmed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants