- Notifications
You must be signed in to change notification settings - Fork329
Rewrite with compression support#163
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from1 commit
Commits
Show all changes
56 commits Select commitHold shift + click to select a range
8604dee
Increase TestWASM timeout
nhooyre55ac18
Document compression API
nhooyre142e08
Improve compression docs
nhooyr53c1aea
Implement compression extension negotiation
nhooyr2cf6c28
Implement compression writer and reader pooling
nhooyra01afea
Support x-webkit-deflate-frame extension for Safari
nhooyr531d4fa
Improve general compression API and write docs
nhooyrd0a8049
Rewrite core
nhooyrdd107dd
Update CI
nhooyr6c6b8e9
Cleanup wspb and wsjson
nhooyr6b782a3
Run make fmt
nhooyr989ba2f
Change websocket to WebSocket in docs/errors
nhooyr9f15963
Simplify dial.go
nhooyr120911b
Remove use of math/rand.Init
nhooyr7ad1514
Update README.md comparison
nhooyr746140b
Further improve README
nhooyr43cb01e
Refactor read.go/write.go
nhooyre8dfe27
Make CI pass
nhooyrf6137f3
Add minor improvements
nhooyr6f6fa43
Refactor autobahn
nhooyr8c87970
Add slidingWindowReader
nhooyraaf4b45
Up test coverage of accept.go to 100%
nhooyr6b76536
Up dial coverage to 100%
nhooyr0f115ed
Add Go 1.12 support
nhooyrb6b56b7
Both modes seem to work :)
nhooyr9e32354
Fix randString method in tests
nhooyr78da35e
Get test with multiple messages working
nhooyrd092686
Autobahn tests fully pass :)
nhooyr6975801
Fix race in tests
nhooyrbbaf469
Fix test step
nhooyrfaadcc9
Simplify tests
nhooyr3f2589f
Remove quite a bit of slog
nhooyrb53f306
Get Wasm tests working
nhooyr69ff675
More tests and fixes
nhooyr085e671
Get coverage to 85%
nhooyr51769b3
Add wspb test
nhooyr670be05
Merge in handshake improvements from master
nhooyr988b8f2
Merge remote-tracking branch 'origin/master' into compress
nhooyr3a526d8
Fix bug in closeHandshake
nhooyr999b812
Fix race in msgReader
nhooyr4b84d25
Fix a race with c.closed
nhooyr85f249d
Up timeouts
nhooyr6b38ebb
Test fixes
nhooyr6770421
Fix goroutine leak from deadlock when closing
nhooyrc752365
Make flateThreshold work
nhooyr0ea9466
Cleanup writeMu and flateThreshold
nhooyrb33d48c
Minor cleanup
nhooyr9c5bfab
Simplifications of conn_test.go
nhooyr3673c2c
Use basic test assertions
nhooyrc5b0a00
Fix badPing test duration
nhooyr1c7c14e
Pool sliding windows
nhooyr503b469
Simplify sliding window API
nhooyrdff4af3
Add conn benchmark
nhooyr2377cca
Switch to klauspost/compress
nhooyrd57b253
Report how efficient compression is in BenchmarkConn
nhooyr1bc100d
Update docs and random little issues
nhooyrFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
Add conn benchmark
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commitdff4af3cbf8ae30e4961ff2a6b32e46344c1b424
There are no files selected for viewing
1 change: 1 addition & 0 deletions.gitignore
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
websocket.test |
2 changes: 0 additions & 2 deletionsautobahn_test.go
This file contains hidden or 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
7 changes: 7 additions & 0 deletionscompress_notjs.go
This file contains hidden or 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
1 change: 1 addition & 0 deletionsconn_notjs.go
This file contains hidden or 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
124 changes: 110 additions & 14 deletionsconn_test.go
This file contains hidden or 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
13 changes: 6 additions & 7 deletionsframe.go
This file contains hidden or 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
3 changes: 2 additions & 1 deletionframe_test.go
This file contains hidden or 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
2 changes: 1 addition & 1 deletioninternal/xsync/go.go
This file contains hidden or 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
6 changes: 4 additions & 2 deletionsread.go
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.