-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Conversation
jkralik
commented
May 6, 2020
•
edited
Loading
edited
- protocols are separated to packages
- observe work's natively (Handle blockwise observation responses #12, blockwise observe #99)
- support's separate message
- don't propagate reset message to client(mcast server - received RST processed as request? #110)
- body as ReadSeeker for easy transfer files
- ability to set source port (connect to coap server with specific source port #90)
- (un)marshal udp/tcp coap message without allocation
- added support for middleware to mux Middleware support #73
+ use require to check return values in tests
TODO: blockwise, keepalive
increase coverage tests
Codecov Report
@@ 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.
|
There was a problem hiding this 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still in progress
}() | ||
|
||
var wg sync.WaitGroup | ||
for { |
There was a problem hiding this comment.
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?
There was a problem hiding this 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
}() | ||
|
||
var wg sync.WaitGroup | ||
for { |
There was a problem hiding this comment.
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.
// max block size is 3bytes: https://tools.ietf.org/html/rfc7959#section-2.1 | ||
maxBlockValue = 0xffffff | ||
// maxBlockNumber is 20bits (NUM) | ||
maxBlockNumber = 0xffff7 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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)