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

Make test.Bridge and packetio.Buffer compatible with net.Conn #58

Merged
merged 2 commits into from
Mar 20, 2020

Conversation

at-wat
Copy link
Member

@at-wat at-wat commented Mar 3, 2020

Part of #57
Related to pion/dtls#208

dtls.Conn now supports SetRead/WriteDeadline if underlying Conn supports them.
I would also like to move webrtc/internal/mux, which internally use packetio.Buffer, to this package and add support of SetRead/WriteDeadline.

deadline package is temporary duplicated with dtls package. I think pion/transport is a better place for deadline package.

@at-wat at-wat force-pushed the net-conn-compatible-bridge-conn branch from 85891c6 to 9c24d40 Compare March 4, 2020 01:52
@codecov
Copy link

codecov bot commented Mar 4, 2020

Codecov Report

Merging #58 into master will increase coverage by 1.28%.
The diff coverage is 94.37%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #58      +/-   ##
==========================================
+ Coverage   83.01%   84.30%   +1.28%     
==========================================
  Files          19       21       +2     
  Lines        1590     1727     +137     
==========================================
+ Hits         1320     1456     +136     
- Misses        181      183       +2     
+ Partials       89       88       -1     
Flag Coverage Δ
#go 84.17% <93.12%> (+1.17%) ⬆️
#wasm 81.97% <94.37%> (+1.49%) ⬆️
Impacted Files Coverage Δ
packetio/errors.go 50.00% <50.00%> (ø)
packetio/buffer.go 97.59% <84.61%> (-2.41%) ⬇️
deadline/deadline.go 96.49% <96.49%> (ø)
test/bridge.go 79.54% <96.51%> (+11.80%) ⬆️

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 a08274b...bbcc688. Read the comment docs.

@at-wat
Copy link
Member Author

at-wat commented Mar 9, 2020

@enobufs please take a look when you have time.

@at-wat at-wat force-pushed the net-conn-compatible-bridge-conn branch from 9129722 to 1e6134f Compare March 12, 2020 08:12
at-wat added a commit to pion/dtls that referenced this pull request Mar 15, 2020
at-wat added a commit to pion/dtls that referenced this pull request Mar 15, 2020
at-wat added a commit to pion/dtls that referenced this pull request Mar 16, 2020
@at-wat at-wat requested review from Sean-Der and adwpc March 16, 2020 03:27
at-wat added a commit to pion/dtls that referenced this pull request Mar 17, 2020
@at-wat
Copy link
Member Author

at-wat commented Mar 20, 2020

Merging for now to proceed pion/dtls#226.
Please add comments if any.

Test bridgeConn by nettest.TestConn.
Move github.com/pion/dtls/pkg/net/deadline to this package to
implement full Read/WriteDeadline.
@at-wat at-wat force-pushed the net-conn-compatible-bridge-conn branch from 1e6134f to bbcc688 Compare March 20, 2020 15:10
@at-wat at-wat merged commit 0776610 into master Mar 20, 2020
@at-wat at-wat deleted the net-conn-compatible-bridge-conn branch March 20, 2020 15:18
@adwpc
Copy link
Member

adwpc commented Mar 21, 2020

Great feature! Sorry for late!

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

2 participants