-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improvement: v0 enhancement and fix (#11)
* example: make sure version is v0 v0plus is an internal developer code reference and should keep internal. * fix: README code indentation * update: type guard for three net objects * update: require Addr() for Relay interface Plus optimize the workflow for v0/relay * update: move v0 testdata to subdirectory * update: remove deprecated build tags Since v0 is optionally imported, it is pointless to assign a special build tag to explicitly disable it. * new: dialer-oriented test coverage * fix: minor relay/listener adjustment * test: test suites for v0 * fix: allow complex testsuites * fix: ignoring err is unsafe * fix: allow this complex test suite * test: overengineered benchmark water benchmark bested std tcp... wut? * fix: listener implements net.Listener Add `AcceptWATER()` in case it is useful to directly get `water.Conn` without unsafe type assertion. * test: remove redundant defer Remove a few redundant defer calls. * test: consistently use localhost:0 * test: use new data for every write Read from crypto/rand after each Write, which introduces "reasonable" latency as well. * fix: unsafe usage missed before
- Loading branch information
Showing
22 changed files
with
1,047 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
//go:build !exclude_v0 | ||
|
||
package v0 | ||
|
||
import ( | ||
|
Oops, something went wrong.