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

V2 #122

Merged
merged 82 commits into from
May 27, 2020
Merged

V2 #122

merged 82 commits into from
May 27, 2020

Conversation

jkralik
Copy link
Member

@jkralik jkralik commented May 6, 2020

@codecov-commenter
Copy link

codecov-commenter commented May 20, 2020

Codecov Report

Merging #122 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #122   +/-   ##
=======================================
  Coverage   60.14%   60.14%           
=======================================
  Files          50       50           
  Lines        3756     3756           
=======================================
  Hits         2259     2259           
  Misses       1202     1202           
  Partials      295      295           

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 84883e5...84883e5. Read the comment docs.

@jkralik jkralik linked an issue May 20, 2020 that may be closed by this pull request
Copy link
Collaborator

@cizmazia cizmazia left a comment

Choose a reason for hiding this comment

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

I suggest moving the packages blockwise, keepalive, noresponse to the net package.

Review is still in progress.

blockwise/blockwise.go Outdated Show resolved Hide resolved
blockwise/blockwise.go Outdated Show resolved Hide resolved
blockwise/error.go Outdated Show resolved Hide resolved
dtls/client.go Outdated Show resolved Hide resolved
dtls/client.go Show resolved Hide resolved
dtls/client.go Show resolved Hide resolved
dtls/client_test.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@cizmazia cizmazia left a comment

Choose a reason for hiding this comment

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

Still in progress

dtls/server.go Show resolved Hide resolved
dtls/server.go Show resolved Hide resolved
}()

var wg sync.WaitGroup
for {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please could you break this nested code into functions?

dtls/server.go Outdated Show resolved Hide resolved
dtls/server.go Outdated Show resolved Hide resolved
dtls/session.go Show resolved Hide resolved
message/pool/message.go Outdated Show resolved Hide resolved
mux/message.go Show resolved Hide resolved
Copy link
Collaborator

@cizmazia cizmazia left a comment

Choose a reason for hiding this comment

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

Review still in progress

message/noresponse/noresponse.go Outdated Show resolved Hide resolved
message/option.go Show resolved Hide resolved
net/blockwise/blockwise.go Outdated Show resolved Hide resolved
net/blockwise/blockwise.go Outdated Show resolved Hide resolved
net/blockwise/blockwise.go Outdated Show resolved Hide resolved
net/dtlslistener.go Show resolved Hide resolved
net/keepalive/keepalive.go Outdated Show resolved Hide resolved
tcp/client.go Outdated Show resolved Hide resolved
tcp/clientconn.go Show resolved Hide resolved
tcp/clientconn.go Outdated Show resolved Hide resolved
tcp/clientconn.go Outdated Show resolved Hide resolved
tcp/clientconn.go Show resolved Hide resolved
tcp/clientobserve.go Show resolved Hide resolved
tcp/server.go Show resolved Hide resolved
tcp/server.go Outdated Show resolved Hide resolved
}()

var wg sync.WaitGroup
for {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would be nice to have this broken down to multiple functions.

udp/server.go Outdated Show resolved Hide resolved
// max block size is 3bytes: https://tools.ietf.org/html/rfc7959#section-2.1
maxBlockValue = 0xffffff
// maxBlockNumber is 20bits (NUM)
maxBlockNumber = 0xffff7
Copy link
Collaborator

Choose a reason for hiding this comment

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

maxBlockNumber was 1048575 == 0xFFFFF not 0xffff7

Copy link
Member Author

Choose a reason for hiding this comment

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

there was a bug - the max block number can have 20bits (0xffff7)

@jkralik jkralik merged commit f73ac2c into master May 27, 2020
@jkralik jkralik deleted the v2 branch June 3, 2020 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants