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

client, conn: remove idle timeout goroutine and use net.Conn read/write deadlines instead #270

Merged
merged 2 commits into from
Jan 31, 2020

Conversation

iwasaki-kenta
Copy link
Contributor

This removes the need for there being one extraneous goroutine per connection and removes the need for keeping track of an idle timeout timer per *noise.Client.

@iwasaki-kenta iwasaki-kenta added the enhancement Small overall improvements label Jan 31, 2020
@iwasaki-kenta iwasaki-kenta self-assigned this Jan 31, 2020
@codecov
Copy link

codecov bot commented Jan 31, 2020

Codecov Report

Merging #270 into master will decrease coverage by 0.56%.
The diff coverage is 70%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #270      +/-   ##
==========================================
- Coverage   69.59%   69.02%   -0.57%     
==========================================
  Files          19       19              
  Lines        1197     1172      -25     
==========================================
- Hits          833      809      -24     
  Misses        266      266              
+ Partials       98       97       -1
Impacted Files Coverage Δ
client.go 62.84% <50%> (-3%) ⬇️
conn.go 78.87% <75%> (-1.13%) ⬇️

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 64da665...48a6488. Read the comment docs.

@iwasaki-kenta iwasaki-kenta merged commit 3878fcc into master Jan 31, 2020
@iwasaki-kenta iwasaki-kenta deleted the remove-timeout-goroutine branch January 31, 2020 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Small overall improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant